What is .got.plt?
Ned Ludd
solar@gentoo.org
Tue Mar 16 17:48:00 GMT 2004
On Mon, 2004-03-15 at 00:59, Jakub Jelinek wrote:
> On Mon, Mar 15, 2004 at 03:52:10PM +0800, Jie Zhang wrote:
> > Binutils generate and use .got.plt section, but it is not defined in the
> > ELF specification. Is it a gnu extension to ELF and what is this kind of
> > sections for?
>
> Well, CVS binutils don't generate it yet in the output, only internally,
> I'll have to finish the -z relro patch and resubmit.
> .got.plt section contains the 3 reserved entries plus the GOT entries
> corresponding to the .plt stubs. The point of separating this from
> .got (where this lived at the beginning of .got, i.e.
> .got : ( *(.got.plt) *(.got) ) in the linker script) is to put the reminder
> of .got to an area which can be write protected after relocation is
> finished because it is constant after relocation is finished. This is not
> true for .got.plt, which is written to during lazy binding.
Jakub,
Any ETA on when you think your going to finish this code off?
Some of us have been waiting somewhat eagerly for the -Wl,-z,relro to be
finalized so it can be merged into our binutils tree.
>
> Jakub
--
Ned Ludd <solar@gentoo.org>
Gentoo Linux Developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
URL: <https://sourceware.org/pipermail/binutils/attachments/20040316/0d1ab426/attachment.sig>
More information about the Binutils
mailing list