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]

Re: binutils cvs still broken on ppc

On Fri, Oct 12, 2001 at 07:39:56AM -0400, Jack Howarth wrote:
> Alan,
>     Could you please fix binutils cvs as HJ has requested on ppc 
> (and the other arches)? I am still seeing massive make check failures
> in binutils cvs (just as I see in the binutils release).
> If I build binutils cvs on debian ppc sid with...

This patch seems to fix Linux/PPC. Alan, could you please double check
all ELF targets for your refcount change? It seems to break almost all
ELF targets :-(.


2001-10-12  H.J. Lu <>

	* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Set plt.offset
	to -1 if the symbol is not a function.

--- bfd/elf32-ppc.c.refcount	Fri Oct 12 11:50:14 2001
+++ bfd/elf32-ppc.c	Fri Oct 12 13:12:09 2001
@@ -1797,6 +1797,11 @@ ppc_elf_adjust_dynamic_symbol (info, h)
       return true;
+  else
+    {
+      h->plt.offset = (bfd_vma) -1;
+      h->elf_link_hash_flags &= ~ELF_LINK_HASH_NEEDS_PLT;
+    }
   /* If this is a weak symbol, and there is a real definition, the
      processor independent code will have arranged for us to see the

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