gas: .sizeof.() / .startof.() creating redundant symbol table entries
Jan Beulich
jbeulich@suse.com
Thu Apr 29 10:56:06 GMT 2021
Hello,
I know these are undocumented, so perhaps one ought to expect quirks,
but the other day I've noticed that multiple uses of these with
identical operands will each create their own symbol table entry.
While first I thought this might be a target specific oddity, I've
now checked and indeed a simple symbol_make() is used, without any
attempt to re-use already existing symbols. Aiui symbol_find_or_make()
is not an option here, to avoid these symbols clashing with other
"normal" ones. So the question is whether the behavior is intended,
assumed to be okay because it's unlikely to have many uses of these
with identical operands, or worth correcting.
Thanks, Jan
More information about the Binutils
mailing list