base: Don't produce .gnu.hash tables for Genode.

Genode linker does not support .gnu.hash tables so they will never be
used. Tell the linker not to bother producing them. This should reduce
the size of Genode ELF files a tiny bit without loosing anything
important in the process.

Fixes #4423
This commit is contained in:
Piotr Tworek 2021-10-18 10:22:09 +02:00 committed by Christian Helmuth
parent 3e460211c8
commit dd1596aa53

View File

@ -216,6 +216,12 @@ LD_OPT += $(LD_MARCH) $(LD_OPT_GC_SECTIONS) $(LD_OPT_ALIGN_SANE)
CXX_LINK_OPT += $(addprefix $(LD_OPT_PREFIX),$(LD_OPT))
CXX_LINK_OPT += $(LD_OPT_NOSTDLIB)
#
# Genode linker does not support .gnu.hash so there is no point in having it
# in the ELF files. Tell the linker to only produce SysV hash tables.
#
LD_OPT += --hash-style=sysv
#
# Linker script for dynamically linked programs
#