From 2c623b85001a277d4bbbdb0a854e15d20207b689 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 15 Nov 2000 19:22:28 +0000 Subject: [PATCH] * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc section with the same ALLOC|LOAD flags as the source section. --- bfd/ChangeLog | 5 +++++ bfd/elf64-alpha.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 98ed9ce6c..dcbba6b46 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2000-11-15 Richard Henderson + + * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc + section with the same ALLOC|LOAD flags as the source section. + 2000-11-14 Jakub Jelinek * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index bb20f55b1..75f0b898b 100644 --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -2548,7 +2548,8 @@ 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_ALLOC|SEC_LOAD + ((sec->flags & (SEC_ALLOC + | SEC_LOAD)) | SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_LINKER_CREATED -- 2.11.4.GIT