Android build fails if -fstack-protector is used in TARGET_GLOBAL_CFLAGS

Bug #1302799 reported by Ricardo Salveti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-i686-linux-android (Ubuntu)
New
Undecided
Unassigned

Bug Description

android/build/core/combo/TARGET_linux-x86.mk defines the default set of CFLAGS used by the build, and "-fstack-protector" is one of them.

Unfortunately the build fails if this option is enabled, with the following error:
target StaticExecutable: recovery (/home/rsalveti/projects/phablet/android/build/phablet/out/target/product/generic_x86/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery)
bootable/recovery/recovery.c:305: error: undefined reference to '__stack_chk_fail_local'
bootable/recovery/recovery.c:367: error: undefined reference to '__stack_chk_fail_local'
bootable/recovery/recovery.c:458: error: undefined reference to '__stack_chk_fail_local'
bootable/recovery/recovery.c:271: error: undefined reference to '__stack_chk_fail_local'

As a workaround, this flag was disabled in the android package (needs to be reverted once this bug is fixed).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.