[PATCH 1/6] busybox: fix compilation with GCC 10

Stijn Tintel stijn at linux-ipv6.be
Sun Aug 15 03:51:14 PDT 2021

When compiling busybox with GCC 10 and CONFIG_PKG_ASLR_PIE_ALL=y, there
are hundreds of errors like:

relocation R_MIPS16_26 against `xzalloc' cannot be used when making a
shared object; recompile with -fPIC

Simply solve this by no longer disabling PKG_ASLR_PIE, so that $(FPIC)
is properly added to the CFLAGS and LDFLAGS.

Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
 package/utils/busybox/Makefile | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index 32f0d2c755..76a1de33b7 100644
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -18,9 +18,6 @@ PKG_BUILD_DEPENDS:=BUSYBOX_CONFIG_PAM:libpam
-#Busybox use it's own PIE config flag and LDFLAGS are used with ld, not gcc.
 PKG_LICENSE_FILES:=LICENSE archival/libarchive/bz/LICENSE

More information about the openwrt-devel mailing list