forked from openkylin/platform_build
arm: turn on -Wl,--fatal-warnings
Third time's the charm. :-) Inb238210c01
, we added -Wl,--warn-shared-textrel to TARGET_GLOBAL_LDFLAGS. This generated a warning whenever we created a shared library with a text relocation. At the time, we wrote: ===== Emit a warning when the static linker detects a shared library has text relocations. Text relocations make it harder to share pages across processes, and make it harder to use certain memory protection features in, for example, SELinux. This warning will turn into an error in a future change (via --fatal-warnings) ===== All code which uses text relocations has either been fixed, or we've temporarily worked around the issue so the code can still compile. Enable --fatal-warnings. This reverts commit942167dab8
. Change-Id: I578701692ead7e7cd60d73d2070a5bed366e2c6c
This commit is contained in:
parent
942167dab8
commit
077007e872
|
@ -138,6 +138,7 @@ TARGET_GLOBAL_LDFLAGS += \
|
|||
-Wl,-z,relro \
|
||||
-Wl,-z,now \
|
||||
-Wl,--warn-shared-textrel \
|
||||
-Wl,--fatal-warnings \
|
||||
-Wl,--icf=safe \
|
||||
$(arch_variant_ldflags)
|
||||
|
||||
|
|
Loading…
Reference in New Issue