aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-alpha.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-07-12 04:24:44 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-07-12 04:24:44 +0000
commit824e2cb428fe40375e5383db219d3440c80d91b5 (patch)
treeb48c7e95316e3e24439c03c4187e8113a24e2d35 /bfd/elf64-alpha.c
parent81f6038f98bd3ca48651c22779ffe6231d0873a0 (diff)
downloadgdb-824e2cb428fe40375e5383db219d3440c80d91b5.zip
gdb-824e2cb428fe40375e5383db219d3440c80d91b5.tar.gz
gdb-824e2cb428fe40375e5383db219d3440c80d91b5.tar.bz2
2001-07-11 H.J. Lu <hjl@gnu.org>
* elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD flags when creating the reloc section if the ALLOC flag in the source section is set.
Diffstat (limited to 'bfd/elf64-alpha.c')
-rw-r--r--bfd/elf64-alpha.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index 9d0af3c..6ee8f06 100644
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -2590,12 +2590,9 @@ elf64_alpha_check_relocs (abfd, info, sec, relocs)
if (sreloc == NULL
|| !bfd_set_section_flags (dynobj, sreloc,
(((sec->flags
- & SEC_DEBUGGING)
- ? (sec->flags
- & (SEC_ALLOC
- | SEC_LOAD))
- : (SEC_ALLOC
- | SEC_LOAD))
+ & SEC_ALLOC)
+ ? (SEC_ALLOC
+ | SEC_LOAD) : 0)
| SEC_HAS_CONTENTS
| SEC_IN_MEMORY
| SEC_LINKER_CREATED