Skip to content

Commit

Permalink
generic: enable RELR relocations
Browse files Browse the repository at this point in the history
RELR is a relocation packing format for relative relocations.

Linux has supported using it for ARM64 since 5.4, and more recently
for LoongArch as well.

It requires compatible tooling as well, so only with binutils 2.43
TOOLS_SUPPORT_RELR is set and thus RELR available.

RELR should always decrease the binary size and while testing this
the default build for Dynalink WRX-36 (qualcommax/ipq807x) reduced
the compressed kernel size by 38k and uncompressed one by 640k.

So, lets enable it in the default config.

Link: openwrt/openwrt#16403
Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
robimarko committed Sep 16, 2024
1 parent 93881ec commit 7e1d092
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions target/linux/generic/config-5.15
Original file line number Diff line number Diff line change
Expand Up @@ -5074,6 +5074,7 @@ CONFIG_REISERFS_FS_XATTR=y
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_RELAY is not set
# CONFIG_RELOCATABLE is not set
CONFIG_RELR=y
# CONFIG_REMOTEPROC is not set
# CONFIG_RENESAS_PHY is not set
# CONFIG_RESET_ATH79 is not set
Expand Down
1 change: 1 addition & 0 deletions target/linux/generic/config-6.1
Original file line number Diff line number Diff line change
Expand Up @@ -5280,6 +5280,7 @@ CONFIG_REISERFS_FS_XATTR=y
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_RELAY is not set
# CONFIG_RELOCATABLE is not set
CONFIG_RELR=y
# CONFIG_REMOTEPROC is not set
# CONFIG_RENESAS_PHY is not set
# CONFIG_RESET_ATH79 is not set
Expand Down
1 change: 1 addition & 0 deletions target/linux/generic/config-6.6
Original file line number Diff line number Diff line change
Expand Up @@ -4977,6 +4977,7 @@ CONFIG_REISERFS_FS_XATTR=y
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_RELAY is not set
# CONFIG_RELOCATABLE is not set
CONFIG_RELR=y
# CONFIG_REMOTEPROC is not set
# CONFIG_RENESAS_PHY is not set
# CONFIG_RESET_ATH79 is not set
Expand Down

0 comments on commit 7e1d092

Please sign in to comment.