.tc entries question

Alan Modra amodra at bigpond.net.au
Wed Aug 9 23:55:30 EST 2006


On Wed, Aug 09, 2006 at 06:15:06AM -0700, Jonathan Bartlett wrote:
> Another 64-bit Elf question, this one about the TOC.  In many examples,
> for defining toc entries, there is some syntax like this:
> 
> name_to_refer_to_this:
> .tc seemingly_unused_name[TC], data_here
> 
> I haven't figured out what the purpose of the name immediately preceding
> [TC] is.  In fact, it seems that in most cases it can simply be left out.
> Is this just a holdover from a previous binary format, or does
> "seemingly_unused_name" actually get used in some fashion?

It is just a syntax we inherited from PowerPC64 XCOFF.
seemingly_unused_name and the bracketed class qualifier are completely
ingored.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Linuxppc-dev mailing list