got and plt section attributes

Alan Modra amodra@bigpond.net.au
Mon Jul 28 15:01:00 GMT 2003


On Mon, Jul 28, 2003 at 04:42:45PM +0200, Jakub Jelinek wrote:
> On Mon, Jul 28, 2003 at 11:54:40PM +0930, Alan Modra wrote:
> > -    SHT_PROGBITS,	0 },
> > +    SHT_PROGBITS,	SHF_ALLOC + SHF_EXECINSTR },
> 
> .plt is SHF_ALLOC + SHF_WRITE + SHF_EXECINSTR on about half of ELF arches I
> think (and SHT_NOBITS on ppc/ppc64).
> Do we really expect half of the arches to define their own special_section
> table with .plt section, or shouldn't backends inform ELF generic code
> whether they use .got.plt or not?

I'm not too worried really.  This table mostly is about getting section
attributes correct for the assembler, and people don't tend to put
things in .plt by hand.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list