* elf64-alpha.c (elf64_alpha_check_relocs): Only put maybe_dynamic
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Oct 2002 20:21:21 +0000 (20:21 +0000)
committerJakub Jelinek <jakub@redhat.com>
Wed, 23 Oct 2002 20:21:21 +0000 (20:21 +0000)
relocs into shared lib non-allocated reloc sections.

bfd/ChangeLog
bfd/elf64-alpha.c

index 528f431cf165fd77aa8a3e17906dd525aa1b50b6..af84d2f1ee6a52afc011517cdce85568db35cabf 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-23  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf64-alpha.c (elf64_alpha_check_relocs): Only put maybe_dynamic
+       relocs into shared lib non-allocated reloc sections.
+
 2002-10-23  Nathan Tallent  <eraxxon@alumni.rice.edu>
 
        * dwarf2.c (add_line_info): Ensure that the line_info_table is
index 2eb5d104301a42af6aa550b2bd2b3c3bfd7b78ce..ab053f96bfa3de1d34776860fac7ffce9bf10f14 100644 (file)
@@ -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;