diff options
author | Pedro Alves <palves@redhat.com> | 2009-03-22 17:32:16 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-03-22 17:32:16 +0000 |
commit | 065a2c74b5aa7c28709928ca57aa49c2fb507079 (patch) | |
tree | 8390577e1cfa0ca98df913b89179d33903e2dd18 /gdb/symfile.c | |
parent | 292d06103a2dbb94503641dfa5e890d45efe943d (diff) | |
download | gdb-065a2c74b5aa7c28709928ca57aa49c2fb507079.zip gdb-065a2c74b5aa7c28709928ca57aa49c2fb507079.tar.gz gdb-065a2c74b5aa7c28709928ca57aa49c2fb507079.tar.bz2 |
* symfile.c (symfile_relocate_debug_section): Remove check for
SEC_DEBUGGING.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 63b5c1d..f25c45e 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -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. */ |