]>
Commit | Line | Data |
---|---|---|
a7de96f0 | 1 | Index: gdb-7.4.50.20120602/gdb/symfile.c |
3a58abaf | 2 | =================================================================== |
a7de96f0 PS |
3 | --- gdb-7.4.50.20120602.orig/gdb/symfile.c 2012-06-02 18:25:20.000000000 +0200 |
4 | +++ gdb-7.4.50.20120602/gdb/symfile.c 2012-06-02 18:26:36.145232057 +0200 | |
5 | @@ -3630,6 +3630,12 @@ default_symfile_relocate (struct objfile | |
6 | DWO file. */ | |
7 | bfd *abfd = sectp->owner; | |
51a5ef0f | 8 | |
3a58abaf | 9 | + /* Executable files have all the relocations already resolved. |
a7de96f0 PS |
10 | + Handle files linked with --emit-relocs. |
11 | + http://sources.redhat.com/ml/gdb/2006-08/msg00137.html */ | |
3a58abaf AM |
12 | + if ((abfd->flags & EXEC_P) != 0) |
13 | + return NULL; | |
14 | + | |
7566401a | 15 | /* We're only interested in sections with relocation |
3a58abaf AM |
16 | information. */ |
17 | if ((sectp->flags & SEC_RELOC) == 0) |