From: Vivian Wang Date: Sun, 17 Sep 2023 17:52:51 +0000 (+0800) Subject: Makefile: Add --exclude-libs ALL to avoid .dynsym X-Git-Tag: v1.4~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ed125a6027eea0f22b92d96d6fb538446fa94c0;p=platform%2Fkernel%2Fopensbi.git 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 Reviewed-by: Anup Patel --- diff --git a/Makefile b/Makefile index ca70949..de4e73a 100644 --- a/Makefile +++ b/Makefile @@ -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)