* 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 ca1290b9df19b52518e2a36ac3a0f10cfa0b47e9..fd785ee63be3954fe35c5d8dbc49567de7e8f5f3 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 252af59c4cd5e0fe062522b183563729aa474556..1778b9226ae3493191407948186a253c5e0a78e2 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;