This is the mail archive of the binutils@sources.redhat.com 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]

Re: Binutils + OpenSSL issue


Eric Christopher wrote:
> On Mon, 2003-05-19 at 13:33, Kumba wrote:
> > Thiemo Seufer wrote:
> > 
> > > It was Alexandre Oliva's patch to introduce multi-GOT which triggers
> > > the problem, specifically elfxx-mips.c, CVS version 1.38 -> 1.39.
> > > 
> > > 
> > > Thiemo
> > > 
> > 
> > 	Hrmm, quite a large patch.  I've tried "unpatching" it to test, but I 
> > admit I am no expert at patching/unpatching (yet) and still wind up with 
> > a minimum of two failures.  It seems other patches added afterwards rely 
> > on elements this specific patch added in.
> > 
> > 	Aside from testing any fixes someone can come up with, I doubt I can 
> > offer much else regarding this glitch/bug.
> 
> What was the bug again?

Broken dynamic relocation table in libcrypto.so.0.9.7 because the global
GOT entry count is to low. This probably happens for all -Bsymbolic
--whole-archive links. The appended patch works around the special case
for libcrypto, but will likely break other things. Just a hint wher to
look.


Thiemo


--- src-orig/bfd/elfxx-mips.c	9 May 2003 02:27:09 -0000
+++ src/bfd/elfxx-mips.c	19 May 2003 22:23:50 -0000
@@ -7851,8 +7851,8 @@ _bfd_mips_elf_hide_symbol (info, entry, 
 	     been marked for a global got entry, give it a local entry
 	     instead.  */
 	  BFD_ASSERT (g->global_gotno > 0);
-	  g->local_gotno++;
-	  g->global_gotno--;
+//	  g->local_gotno++;
+//	  g->global_gotno--;
 	}
     }
 


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