]> git.pld-linux.org Git - packages/gdb.git/blame - gdb-6.5-bz203661-emit-relocs.patch
- updated (performance fixes).
[packages/gdb.git] / gdb-6.5-bz203661-emit-relocs.patch
CommitLineData
51a5ef0f 1Index: gdb-7.0.90.20100306/gdb/symfile.c
3a58abaf 2===================================================================
51a5ef0f
PS
3--- gdb-7.0.90.20100306.orig/gdb/symfile.c 2010-03-06 23:20:35.000000000 +0100
4+++ gdb-7.0.90.20100306/gdb/symfile.c 2010-03-06 23:26:25.000000000 +0100
5@@ -3642,6 +3642,12 @@ default_symfile_relocate (struct objfile
3a58abaf 6 {
51a5ef0f
PS
7 bfd *abfd = objfile->obfd;
8
3a58abaf
AM
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+
7566401a 15 /* We're only interested in sections with relocation
3a58abaf
AM
16 information. */
17 if ((sectp->flags & SEC_RELOC) == 0)
This page took 0.104142 seconds and 4 git commands to generate.