2001-07-11 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 11 Jul 2001 19:03:10 +0000 (19:03 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 11 Jul 2001 19:03:10 +0000 (19:03 +0000)
* 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.

bfd/ChangeLog
bfd/elf64-alpha.c

index b4937f55e78f51a4d5b6e0a743d3a2dd34ac509f..c0e0704a7ec432ae1d15609d27f9231caa3f544f 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2001-07-05  Jim Wilson  <wilson@redhat.com>
 
        * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
index bd89a7b805359ce088a454cf3d7bf92cf2207c5e..9d0af3cea90fbf3164299d3e9f25498003ac627c 100644 (file)
@@ -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