This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


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

Lxx vs .Lxxx - gcc vs gas



[Be careful when replying; this was sent to two mailing lists - DJ]

There are two types of "local" labels used by gcc and gas:

(1)	Lfoo:
(2)	.Lfoo:

gcc chooses which to use based on whether the target prepends an
underscore to external symbols or not.

gas chooses which to use based on whether the output object format is
COFF or not (for the i386, at least).

DJGPP is coff with underscores, and the two don't agree on which is
right, so I end up with all the local labels in the object's symbol
table.

Which should I fix?  Is there a global solution, or will I need a
special case for djgpp?

DJ
dj@delorie.com