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> 2007-03-28 Richard Sandiford <richard@codesourcery.com>
* elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela. * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.

View File

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