]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-6.5-bz203661-emit-relocs.patch
- update to 6.8.91.20090930-1 from fedora
[packages/gdb.git] / gdb-6.5-bz203661-emit-relocs.patch
1 Index: gdb-6.8.50.20090802/gdb/symfile.c
2 ===================================================================
3 --- gdb-6.8.50.20090802.orig/gdb/symfile.c      2009-08-03 12:29:58.000000000 +0200
4 +++ gdb-6.8.50.20090802/gdb/symfile.c   2009-08-03 12:40:58.000000000 +0200
5 @@ -4012,6 +4012,12 @@ symfile_dummy_outputs (bfd *abfd, asecti
6  bfd_byte *
7  symfile_relocate_debug_section (bfd *abfd, asection *sectp, bfd_byte *buf)
8  {
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)
13 +    return NULL;
14 +
15    /* We're only interested in sections with relocation
16       information.  */
17    if ((sectp->flags & SEC_RELOC) == 0)
This page took 0.81013 seconds and 3 git commands to generate.