1 Index: gdb-6.5/gdb/symfile.c
2 ===================================================================
3 --- gdb-6.5.orig/gdb/symfile.c 2006-08-24 02:56:02.000000000 -0300
4 +++ gdb-6.5/gdb/symfile.c 2006-08-24 02:56:36.000000000 -0300
5 @@ -3739,6 +3739,12 @@ symfile_dummy_outputs (bfd *abfd, asecti
7 symfile_relocate_debug_section (bfd *abfd, asection *sectp, bfd_byte *buf)
9 + /* Executable files have all the relocations already resolved.
10 + * Handle files linked with --emit-relocs.
11 + * http://sources.redhat.com/ml/gdb/2006-08/msg00137.html */
12 + if ((abfd->flags & EXEC_P) != 0)
15 /* We're only interested in debugging sections with relocation
17 if ((sectp->flags & SEC_RELOC) == 0)