diff options
author | Vivian Wang <dramforever@live.com> | 2023-09-18 01:52:51 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-10-06 09:21:24 +0530 |
commit | 6ed125a6027eea0f22b92d96d6fb538446fa94c0 (patch) | |
tree | 619ab28f4999e42a00f8905e317b962ba9fa9d9a /Makefile | |
parent | 2a6d72534d44c39e1de0614970a0dad97b1c41ba (diff) | |
download | opensbi-6ed125a6027eea0f22b92d96d6fb538446fa94c0.zip opensbi-6ed125a6027eea0f22b92d96d6fb538446fa94c0.tar.gz opensbi-6ed125a6027eea0f22b92d96d6fb538446fa94c0.tar.bz2 |
Makefile: Add --exclude-libs ALL to avoid .dynsym
Since everything is statically linked, we don't need to expose symbols
for dynamic linking.
For a default build this saves about 2 KiB of useless read only data in
.dynsym, .dynstr, .hash, .gnu.hash sections.
Signed-off-by: Vivian Wang <dramforever@live.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -375,6 +375,7 @@ ASFLAGS += $(firmware-asflags-y) ARFLAGS = rcs ELFFLAGS += $(USE_LD_FLAG) +ELFFLAGS += -Wl,--exclude-libs,ALL ELFFLAGS += -Wl,--build-id=none ELFFLAGS += $(platform-ldflags-y) ELFFLAGS += $(firmware-ldflags-y) |