* elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count

when relocatable.
This commit is contained in:
Alan Modra 2005-08-16 10:13:43 +00:00
parent 09ff3500dc
commit 18d944df00
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-08-16 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count
when relocatable.
2005-08-15 Bob Wilson <bob.wilson@acm.org> 2005-08-15 Bob Wilson <bob.wilson@acm.org>
* elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap values * elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap values

View File

@ -6461,8 +6461,9 @@ ppc64_elf_edit_opd (bfd *obfd, struct bfd_link_info *info,
if (skip) if (skip)
{ {
if (!dec_dynrel_count (rel->r_info, sec, info, if (!info->relocatable
NULL, h, sym_sec)) && !dec_dynrel_count (rel->r_info, sec, info,
NULL, h, sym_sec))
goto error_ret; goto error_ret;
} }
else else