Commit 3f641000 authored by Arjan Oortgiese's avatar Arjan Oortgiese

Use relative addresses from __ARRAY__ for PIC compiled binaries (e.g. Android)

parent 5acbe0f2
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# endif # endif
#endif #endif
#if defined (MACH_O64) #if defined (MACH_O64) || defined (PIC)
// Use positions relative to _ARRAY_ for address space layout randomization systems. // Use positions relative to _ARRAY_ for address space layout randomization systems.
# define USE_DESC_RELATIVE_TO_ARRAY 1 # define USE_DESC_RELATIVE_TO_ARRAY 1
#endif #endif
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# endif # endif
#endif #endif
#if defined (MACH_O64) #if defined (MACH_O64) || defined (PIC)
// Use positions relative to _ARRAY_ for address space layout randomization systems. // Use positions relative to _ARRAY_ for address space layout randomization systems.
# define USE_DESC_RELATIVE_TO_ARRAY 1 # define USE_DESC_RELATIVE_TO_ARRAY 1
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment