aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-alpha.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-07-11 19:03:10 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-07-11 19:03:10 +0000
commit067a7d17c46263a249d418edc6111b7cbd694527 (patch)
treecad70e014ee934cb5703fb27959f73711be7ac61 /bfd/elf64-alpha.c
parentf175af981800f9ab8fbcd8af1823c1ab411404ab (diff)
downloadgdb-067a7d17c46263a249d418edc6111b7cbd694527.zip
gdb-067a7d17c46263a249d418edc6111b7cbd694527.tar.gz
gdb-067a7d17c46263a249d418edc6111b7cbd694527.tar.bz2
2001-07-11 H.J. Lu <hjl@gnu.org>
* elf64-alpha.c (elf64_alpha_check_relocs): Only use the same ALLOC|LOAD flags as the source section for debugging sections when creating the reloc section.
Diffstat (limited to 'bfd/elf64-alpha.c')
-rw-r--r--bfd/elf64-alpha.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index bd89a7b..9d0af3c 100644
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -2589,8 +2589,13 @@ elf64_alpha_check_relocs (abfd, info, sec, relocs)
sreloc = bfd_make_section (dynobj, rel_sec_name);
if (sreloc == NULL
|| !bfd_set_section_flags (dynobj, sreloc,
- ((sec->flags & (SEC_ALLOC
- | SEC_LOAD))
+ (((sec->flags
+ & SEC_DEBUGGING)
+ ? (sec->flags
+ & (SEC_ALLOC
+ | SEC_LOAD))
+ : (SEC_ALLOC
+ | SEC_LOAD))
| SEC_HAS_CONTENTS
| SEC_IN_MEMORY
| SEC_LINKER_CREATED