2001-07-11 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 12 Jul 2001 04:24:44 +0000 (04:24 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 12 Jul 2001 04:24:44 +0000 (04:24 +0000)
* 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.

bfd/ChangeLog
bfd/elf64-alpha.c

index 795d06eeb1e81fd6d872386439142677f38ddec7..896b54f6096ef574f584f8b256c92f0563792918 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2001-07-11  Steve Ellcey  <sje@cup.hp.com>
 
        * reloc.c (bfd_reloc_code_type): Add IA64 relocs
index 9d0af3cea90fbf3164299d3e9f25498003ac627c..6ee8f062b5826af8ce2a25a03e50f076188243d4 100644 (file)
@@ -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