This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] S12Z: gas: Fix bug when a symbol name was the single letter 'c'.
On Wed, 16 Jan 2019, Nick Clifton wrote:
> (In other architectures it is often common practice for the compiler
> to prefix all user generated symbols with a character, usually an
> underscore, so that it is possible to distinguish between register
> names and user symbols).
Note that doing this conflicts with the ELF gABI ("External C symbols have
the same names in C and object files' symbol tables."). It's only common
practice for non-ELF. (It's not unknown for ELF, e.g. BlackFin, but it's
unusual there, conflicts with the gABI and complicates writing symbol
version maps that work across architectures; normal ELF practice would
involve an unambiguous assembler syntax to allow all valid symbol names.
Note that e.g. glibc does not support any configurations with such a
leading underscore.)
--
Joseph S. Myers
joseph@codesourcery.com