openwrt-mirror/config
Hauke Mehrtens a2a78c04f8 build: Add support for linking with DT_RELR
This adds the -Wl,-z,pack-relative-relocs linking options.
This reduces the size of some binaries.

This is only supported on i386, x86_64, aarch64 and loongarch64 in
binutils. This feature is not support for MIPS.

musl libc supports it since version 1.2.4 .
glibc supports it since vesion 2.36.
binutils ld supports it since version 2.38 for x86 and since version
2.43 for LoongArch.

This reduces the size of the armsr default root file system from
5,262,198 bytes to 5,200,950 bytes by 61,248 bytes.

Link: https://github.com/openwrt/openwrt/pull/20679
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-11-18 23:17:09 +01:00
..
check-hostcxx.sh config: add a knob to use the mold linker for packages 2023-07-04 20:25:40 +02:00
check-uname.sh build: add HOST_OS_LINUX and HOST_OS_MACOS config symbols 2021-11-01 16:37:52 +01:00
Config-build.in build: Add support for linking with DT_RELR 2025-11-18 23:17:09 +01:00
Config-devel.in tools: add options to optimize host binaries 2025-05-04 18:25:03 +02:00
Config-images.in image: also show GRUB options for EROFS 2025-07-26 18:02:31 +02:00
Config-kernel.in image: add support for EROFS rootfs image generation 2025-07-05 15:24:54 +02:00