aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-08-16 10:13:43 +0000
committerAlan Modra <amodra@gmail.com>2005-08-16 10:13:43 +0000
commit18d944df002f75e0a0a933a7995327adb76e146c (patch)
tree0231b2a4e7a9285f68c2986f4d034c48087caf38 /bfd/elf64-ppc.c
parent09ff3500dcb85937d40ab3cd4be9ad8329ed9247 (diff)
downloadgdb-18d944df002f75e0a0a933a7995327adb76e146c.zip
gdb-18d944df002f75e0a0a933a7995327adb76e146c.tar.gz
gdb-18d944df002f75e0a0a933a7995327adb76e146c.tar.bz2
* elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count
when relocatable.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 545fae8..31ad3d0 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