This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

STT_SECTION STB_LOCAL syms in .dynsym section for non-SHF_ALLOC sections


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]