aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-alpha.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2002-10-23 20:21:21 +0000
committerJakub Jelinek <jakub@redhat.com>2002-10-23 20:21:21 +0000
commit475c2a7e6528e2f03957b5c2689f5fe4da8c53ce (patch)
tree195abb282620161209b29ea6e6093c7427e28c3f /bfd/elf64-alpha.c
parenta8927cfd1ab2dac807c4d22428f3dbfd3c9d8713 (diff)
downloadgdb-475c2a7e6528e2f03957b5c2689f5fe4da8c53ce.zip
gdb-475c2a7e6528e2f03957b5c2689f5fe4da8c53ce.tar.gz
gdb-475c2a7e6528e2f03957b5c2689f5fe4da8c53ce.tar.bz2
* elf64-alpha.c (elf64_alpha_check_relocs): Only put maybe_dynamic
relocs into shared lib non-allocated reloc sections.
Diffstat (limited to 'bfd/elf64-alpha.c')
-rw-r--r--bfd/elf64-alpha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index 2eb5d10..ab053f9 100644
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -3100,7 +3100,7 @@ elf64_alpha_check_relocs (abfd, info, sec, relocs)
case R_ALPHA_REFLONG:
case R_ALPHA_REFQUAD:
- if (info->shared || maybe_dynamic)
+ if ((info->shared && (sec->flags & SEC_ALLOC)) || maybe_dynamic)
need = NEED_DYNREL;
break;