From d25d79cce8aaef0536bf2cace60e3e81cb9b6207 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 16 Aug 2005 10:13:43 +0000 Subject: [PATCH] * elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count when relocatable. --- bfd/ChangeLog | 5 +++++ bfd/elf64-ppc.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e26264ddf..5e17f8954 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-08-16 Alan Modra + + * elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count + when relocatable. + 2005-08-15 Bob Wilson * elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap values diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 545fae835..31ad3d0e3 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -6461,8 +6461,9 @@ ppc64_elf_edit_opd (bfd *obfd, struct bfd_link_info *info, if (skip) { - if (!dec_dynrel_count (rel->r_info, sec, info, - NULL, h, sym_sec)) + if (!info->relocatable + && !dec_dynrel_count (rel->r_info, sec, info, + NULL, h, sym_sec)) goto error_ret; } else -- 2.11.4.GIT