You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe for Mac OS X you need to use -Wl,-pie even with gcc. If you use gcc -v when linking on Mac OS X you won't see -pie being passed to the linker. Here's the output of otool -h on an executable built with -pie in LDFLAGS on Mac OS X 10.6:
[from a blog comment]
I believe for Mac OS X you need to use
-Wl,-pie
even with gcc. If you usegcc -v
when linking on Mac OS X you won't see-pie
being passed to the linker. Here's the output ofotool -h
on an executable built with-pie
inLDFLAGS
on Mac OS X 10.6:Compare that to one built with
-Wl,-pie
In
/usr/include/mach-o/loader.h
we find this:The text was updated successfully, but these errors were encountered: