Skip to content
Commit b7035ae3 authored by Nick Kledzik's avatar Nick Kledzik
Browse files

[mach-o] Add support for -pie and -no_pie

There is a bit (MH_PIE) in the flags field of the mach_header which tells
the kernel is a program was built position independent (for ASLR).  The linker
automatically attempts to build programs PIE if they are built for a recent
OS version.  But the -pie and -no_pie options override that default behavior.

llvm-svn: 217408
parent 513e8a91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment