This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
STT_SECTION STB_LOCAL syms in .dynsym section for non-SHF_ALLOC sections
- From: Jakub Jelinek <jakub at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 14 Feb 2003 22:26:28 +0100
- Subject: STT_SECTION STB_LOCAL syms in .dynsym section for non-SHF_ALLOC sections
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
What do you think about not emitting symbols like:
24: 00000000 0 SECTION LOCAL DEFAULT 24
25: 00000000 0 SECTION LOCAL DEFAULT 25
26: 00000000 0 SECTION LOCAL DEFAULT 26
27: 00000000 0 SECTION LOCAL DEFAULT 27
28: 00000000 0 SECTION LOCAL DEFAULT 28
29: 00000000 0 SECTION LOCAL DEFAULT 29
30: 00000000 0 SECTION LOCAL DEFAULT 30
for the non-allocated sections in the .dynsym section?
IMHO it is pure bloat, especially if there are many non-alloced sections
and e.g. when linking shared lib with -s or -S the result is different
from linking without it and doing strip afterwards.
On arches which don't emit .rel{,a}* sections for non-ALLOCed sections
it should not make a difference, and even for those which do I think
those non-ALLOCed .rel{,a} sections should be sh_link'ed against .symtab,
not .dynsym.
Jakub