- Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
After introducing arc-2019.09-eng002 in Buildroot glibc build started to fail if -fPIE option is applied.
The error message is like:
arc-buildroot-linux-gnu/bin/ld: GOT and PLT relocations cannot be fixed with a non dynamic linker arc-buildroot-linux-gnu/bin/ld: final link failed: bad value The error can be easily reproduced on Buildroot master with additional change:
diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk index c6acc43ff5..a8aa901436 100644 --- a/package/glibc/glibc.mk +++ b/package/glibc/glibc.mk @@ -58,6 +58,8 @@ else ifeq ($(BR2_MIPS_OABI32),y) GLIBC_EXTRA_CFLAGS += -mabi=32 endif +GLIBC_EXTRA_CFLAGS += -fPIE + ifeq ($(BR2_ENABLE_DEBUG),y) GLIBC_EXTRA_CFLAGS += -g endif The cause of this failure may be in this commit:
1823527
After reverting this commit the glibc build finishes well.