From: H.J. Lu Date: Wed, 11 Jul 2001 19:03:10 +0000 (+0000) Subject: 2001-07-11 H.J. Lu X-Git-Tag: gdb_5_1-2001-07-29-branchpoint~214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=067a7d17c46263a249d418edc6111b7cbd694527;p=external%2Fbinutils.git 2001-07-11 H.J. Lu * 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b4937f5..c0e0704 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2001-07-11 H.J. Lu + + * 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. + 2001-07-05 Jim Wilson * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use 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