summaryrefslogtreecommitdiff
path: root/bfd/elf64-alpha.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-05-22 22:07:31 +0000
committerRichard Henderson <rth@redhat.com>2005-05-22 22:07:31 +0000
commit95df6fc319561de3f185c15c950cafc9e2c3e5fd (patch)
tree7ca9fbd02345813662bbf192adc3129ada861a47 /bfd/elf64-alpha.c
parente910b029863bacfd541b8996ad796961848e1d19 (diff)
downloadbinutils-redhat-95df6fc319561de3f185c15c950cafc9e2c3e5fd.tar.gz
* elf64-alpha.c (elf64_alpha_relax_section): Only operate
on SEC_CODE 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 252af59c4c..1778b9226a 100644
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -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;