[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] MiNTlib assembly labels naming?



Eero Tamminen <oak@helsinkinet.fi> writes:

> When looking at symbols which occur several times in MiNTlib,
> "exit" is found from 3 different places:

There is nothing wrong with local symbols appearing in multiple object,
they are local after all.  You get them from any file local
(i.e. static) symbol defined in C.

> Isn't "." what was used with Devpac for getting a local symbol
> i.e. shouldn't '.' be replace with 'L' in those?

You can name local labels any way you like as long they are unique to
the translation unit.

> In C, yes, but in Gdb it shows up as "__exit"

__exit is the assembler name of _exit.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."