2012-06-03 17:40:44 +00:00
|
|
|
Index: gdb-7.4.50.20120602/gdb/symfile.c
|
2006-08-24 06:18:06 +00:00
|
|
|
===================================================================
|
2012-06-03 17:40:44 +00:00
|
|
|
--- gdb-7.4.50.20120602.orig/gdb/symfile.c 2012-06-02 18:25:20.000000000 +0200
|
|
|
|
+++ gdb-7.4.50.20120602/gdb/symfile.c 2012-06-02 18:26:36.145232057 +0200
|
|
|
|
@@ -3630,6 +3630,12 @@ default_symfile_relocate (struct objfile
|
|
|
|
DWO file. */
|
|
|
|
bfd *abfd = sectp->owner;
|
2010-07-11 18:06:33 +00:00
|
|
|
|
2006-08-24 06:18:06 +00:00
|
|
|
+ /* Executable files have all the relocations already resolved.
|
2012-06-03 17:40:44 +00:00
|
|
|
+ Handle files linked with --emit-relocs.
|
|
|
|
+ http://sources.redhat.com/ml/gdb/2006-08/msg00137.html */
|
2006-08-24 06:18:06 +00:00
|
|
|
+ if ((abfd->flags & EXEC_P) != 0)
|
|
|
|
+ return NULL;
|
|
|
|
+
|
2009-08-04 05:37:29 +00:00
|
|
|
/* We're only interested in sections with relocation
|
2006-08-24 06:18:06 +00:00
|
|
|
information. */
|
|
|
|
if ((sectp->flags & SEC_RELOC) == 0)
|