From: Felix Fietkau Date: Tue, 16 Aug 2022 17:35:50 +0000 (+0200) Subject: gcc/binutils: disable sysv style hash tables for generated binaries X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a8d11b1ea92bb5e32cb4ca17e7d2935c6653a074;p=openwrt%2Fstaging%2Fnbd.git gcc/binutils: disable sysv style hash tables for generated binaries GNU hash tables are always preferred by musl, so the sysv ones are completely unused and only waste space. Reduces image size by ~1.4% Signed-off-by: Felix Fietkau --- diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile index 63f0e07ccf..2c715d45ee 100644 --- a/toolchain/binutils/Makefile +++ b/toolchain/binutils/Makefile @@ -49,6 +49,7 @@ HOST_CONFIGURE_ARGS = \ --with-system-zlib \ --with-zstd \ --enable-deterministic-archives \ + $(if $(findstring mips,$(ARCH)),,--enable-default-hash-style=gnu) \ --enable-plugins \ --enable-lto \ --disable-gprofng \ diff --git a/toolchain/build_version b/toolchain/build_version index d00491fd7e..0cfbf08886 100644 --- a/toolchain/build_version +++ b/toolchain/build_version @@ -1 +1 @@ -1 +2 diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 0ccf55bd31..9170da5bf0 100644 --- a/toolchain/gcc/common.mk +++ b/toolchain/gcc/common.mk @@ -108,6 +108,7 @@ GCC_CONFIGURE:= \ --disable-libssp \ $(GRAPHITE_CONFIGURE) \ --with-host-libstdcxx=-lstdc++ \ + $(if $(findstring mips,$(ARCH)),,--with-linker-hash-style=gnu) \ $(SOFT_FLOAT_CONFIG_OPTION) \ $(call qstrip,$(CONFIG_EXTRA_GCC_CONFIG_OPTIONS)) \ $(if $(CONFIG_mips64)$(CONFIG_mips64el),--with-arch=mips64 \