This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]


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 
things, though.

If nothing else the comment against DT_PLTGOT should changed.


Index: elf32-hppa.c
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 @@
 	    case DT_PLTGOT:
-	      /* Use PLTGOT to set the GOT register.  */
+	      /* Set PLTGOT to the GP.  */
 	      dyn.d_un.d_ptr = elf_gp (output_bfd);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]