[PATCH] S12Z: gas: Fix bug when a symbol name was the single letter 'c'.

John Darrington john@darrington.wattle.id.au
Fri Jan 18 06:55:00 GMT 2019


On Wed, Jan 16, 2019 at 05:22:04PM +0000, Joseph Myers wrote:
     
     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.  

Then there is no way to satisfy both the gABI requirements and the
Freescale assembler syntax, whose manual says "Register names are
reserved identifiers".

I can think of a few ways to mitigate the potential problems this might
cause, but none are entirely elegant.

J'
     

-- 
Avoid eavesdropping.  Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.



More information about the Binutils mailing list