From: Richard Henderson Date: Sun, 22 May 2005 22:07:31 +0000 (+0000) Subject: * elf64-alpha.c (elf64_alpha_relax_section): Only operate X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=487c435301ca74f6ef5dced9e1a0e60815ecddb7;p=binutils-gdb.git * elf64-alpha.c (elf64_alpha_relax_section): Only operate on SEC_CODE sections. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ca1290b9df1..fd785ee63be 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-05-22 Richard Henderson + + * elf64-alpha.c (elf64_alpha_relax_section): Only operate + on SEC_CODE sections. + 2005-05-22 John David Anglin * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index 252af59c4cd..1778b9226ae 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;