* symfile.c (symfile_relocate_debug_section): Remove check for
SEC_DEBUGGING.
This commit is contained in:
parent
292d06103a
commit
065a2c74b5
|
@ -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>
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue