* elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
authorRichard Henderson <rth@redhat.com>
Wed, 15 Nov 2000 19:22:28 +0000 (19:22 +0000)
committerRichard Henderson <rth@redhat.com>
Wed, 15 Nov 2000 19:22:28 +0000 (19:22 +0000)
        section with the same ALLOC|LOAD flags as the source section.

bfd/ChangeLog
bfd/elf64-alpha.c

index 98ed9ce6c8644c643e530cea2522a1b473ff799b..dcbba6b468a76eeea9b587c337ba0f30f24760fd 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-15  Richard Henderson  <rth@redhat.com>
+
+       * 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  <jakub@redhat.com>
 
        * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
index bb20f55b1fe5f97a22970104fdb361718d6f375f..75f0b898b7435f010e1e2d1b06b9b0bebea4aaa7 100644 (file)
@@ -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