* symfile.c (symfile_relocate_debug_section): Remove check for
authorPedro Alves <palves@redhat.com>
Sun, 22 Mar 2009 17:32:16 +0000 (17:32 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 22 Mar 2009 17:32:16 +0000 (17:32 +0000)
SEC_DEBUGGING.

gdb/ChangeLog
gdb/symfile.c

index e9b369538da6e48cbd45906d8fc02f25e786a6b2..5f77b434d33c87ed89769268b14fa3c87cd1551c 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 63b5c1d8444e19a122cc71bfc836a25bd6d290b6..f25c45ebc21375277d47c3980647aca1fcdfbdad 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.  */
This page took 0.039632 seconds and 4 git commands to generate.