diff options
author | Richard Henderson <rth@redhat.com> | 2005-05-22 22:07:31 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2005-05-22 22:07:31 +0000 |
commit | 487c435301ca74f6ef5dced9e1a0e60815ecddb7 (patch) | |
tree | 4c4effc6c5be870e73623875882804b02e0431d6 /bfd | |
parent | 175ac04375db1247484c69df0c897d00a0db4b8d (diff) | |
download | gdb-487c435301ca74f6ef5dced9e1a0e60815ecddb7.zip gdb-487c435301ca74f6ef5dced9e1a0e60815ecddb7.tar.gz gdb-487c435301ca74f6ef5dced9e1a0e60815ecddb7.tar.bz2 |
* elf64-alpha.c (elf64_alpha_relax_section): Only operate
on SEC_CODE sections.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-alpha.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ca1290b..fd785ee 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index 252af59..1778b92 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; |