PR ld/4267

* elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
	unused entries.  Don't clear plt.plist in loop.
This commit is contained in:
Alan Modra
2007-03-29 01:11:30 +00:00
parent 2482afc6aa
commit 2ce859a18d
2 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2007-03-29 Alan Modra <amodra@bigpond.net.au>
PR ld/4267
* elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
unused entries. Don't clear plt.plist in loop.
2007-03-28 Richard Sandiford <richard@codesourcery.com>
* elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.

View File

@ -4500,13 +4500,15 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
}
else
ent->plt.offset = (bfd_vma) -1;
if (!doneone)
{
h->plt.plist = NULL;
h->needs_plt = 0;
}
}
else
ent->plt.offset = (bfd_vma) -1;
if (!doneone)
{
h->plt.plist = NULL;
h->needs_plt = 0;
}
}
else
{