* elf64-alpha.c (elf64_alpha_relax_section): Only operate
authorRichard Henderson <rth@redhat.com>
Sun, 22 May 2005 22:07:31 +0000 (22:07 +0000)
committerRichard Henderson <rth@redhat.com>
Sun, 22 May 2005 22:07:31 +0000 (22:07 +0000)
        on SEC_CODE sections.

bfd/ChangeLog
bfd/elf64-alpha.c

index ca1290b..fd785ee 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-22  Richard Henderson  <rth@redhat.com>
+
+       * elf64-alpha.c (elf64_alpha_relax_section): Only operate
+       on SEC_CODE sections.
+
 2005-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
index 252af59..1778b92 100644 (file)
@@ -1969,7 +1969,7 @@ elf64_alpha_relax_section (abfd, sec, link_info, again)
   *again = FALSE;
 
   if (link_info->relocatable
-      || (sec->flags & SEC_RELOC) == 0
+      || (sec->flags & (SEC_CODE | SEC_RELOC)) != (SEC_CODE | SEC_RELOC)
       || sec->reloc_count == 0)
     return TRUE;