This is the mail archive of the
mailing list for the binutils project.
Re: HPPA ELF DT_PLTGOT handling
- From: Nick Hudson <skrll at netbsd dot org>
- To: binutils at sources dot redhat dot com
- Cc: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Thu, 8 Jul 2004 13:13:25 +0100
- Subject: Re: HPPA ELF DT_PLTGOT handling
- References: <200407072049.i67KnhmC011922@hiauly1.hia.nrc.ca>
On Wednesday 07 July 2004 21:49, John David Anglin wrote:
> > A much more convenient (from the POV of the dynamic linker) is to always
> > set DT_PLTGOT to a pointer to the GOT. glibc goes searching for the GOT
> > which it would no longer need to do. Is this worth considering?
> No. It would change the ABI and break existing code.
Setting the DT_PLTGOT and GP to a pointer to the GOT wouldn't break the ABI. I
guess the point is that the binutils linker and HP linkers would do different
If nothing else the comment against DT_PLTGOT should changed.
RCS file: /cvs/src/src/bfd/elf32-hppa.c,v
retrieving revision 1.117
diff -u -r1.117 elf32-hppa.c
--- elf32-hppa.c 24 Jun 2004 04:46:19 -0000 1.117
+++ elf32-hppa.c 8 Jul 2004 12:12:43 -0000
@@ -4017,7 +4017,7 @@
- /* Use PLTGOT to set the GOT register. */
+ /* Set PLTGOT to the GP. */
dyn.d_un.d_ptr = elf_gp (output_bfd);