OSDN Git Service

* symfile.c (symfile_relocate_debug_section): Remove check for
authorpalves <palves>
Sun, 22 Mar 2009 17:32:13 +0000 (17:32 +0000)
committerpalves <palves>
Sun, 22 Mar 2009 17:32:13 +0000 (17:32 +0000)
SEC_DEBUGGING.

gdb/ChangeLog
gdb/symfile.c

index e9b3695..5f77b43 100644 (file)
@@ -1,3 +1,8 @@
+2009-03-22  Pedro Alves  <pedro@codesourcery.com>
+
+       * symfile.c (symfile_relocate_debug_section): Remove check for
+       SEC_DEBUGGING.
+
 2009-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
            Jim Blandy  <jimb@red-bean.com>
            Thiago Jung Bauermann  <bauerman@br.ibm.com>
index 63b5c1d..f25c45e 100644 (file)
@@ -3940,17 +3940,18 @@ symfile_dummy_outputs (bfd *abfd, asection *sectp, void *dummy)
    one affected platform is PowerPC GNU/Linux, although it depends on
    the version of the linker in use).  Also, ELF object files naturally
    have unresolved relocations for their debug sections.  We need to apply
-   the relocations in order to get the locations of symbols correct.  */
+   the relocations in order to get the locations of symbols correct.
+   Another example that may require relocation processing, is the
+   DWARF-2 .eh_frame section in .o files, although it isn't strictly a
+   debug section.  */
 
 bfd_byte *
 symfile_relocate_debug_section (bfd *abfd, asection *sectp, bfd_byte *buf)
 {
-  /* We're only interested in debugging sections with relocation
+  /* We're only interested in sections with relocation
      information.  */
   if ((sectp->flags & SEC_RELOC) == 0)
     return NULL;
-  if ((sectp->flags & SEC_DEBUGGING) == 0)
-    return NULL;
 
   /* We will handle section offsets properly elsewhere, so relocate as if
      all sections begin at 0.  */