aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-08-04 23:13:50 +0000
committerKevin Buettner <kevinb@redhat.com>2000-08-04 23:13:50 +0000
commit7a78d0eec8f3c753f2ba505458d876142e575cf4 (patch)
treebaafcaef505dd585237dc57c6903dca3d0fadbfb /gdb/symtab.c
parent3d4ae3c0c6cbd480d202a6b1dcb6d3a5b75f9915 (diff)
downloadgdb-7a78d0eec8f3c753f2ba505458d876142e575cf4.zip
gdb-7a78d0eec8f3c753f2ba505458d876142e575cf4.tar.gz
gdb-7a78d0eec8f3c753f2ba505458d876142e575cf4.tar.bz2
Fixup SYMBOL_SECTION for objfiles_relocate().
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index e43afd4..633f6f7 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -81,10 +81,6 @@ static struct partial_symbol *lookup_partial_symbol (struct partial_symtab *,
const char *, int,
namespace_enum);
-static struct partial_symbol *fixup_psymbol_section (struct
- partial_symbol *,
- struct objfile *);
-
static struct symtab *lookup_symtab_1 (char *);
static void cplusplus_hint (char *);
@@ -520,7 +516,10 @@ fixup_section (struct general_symbol_info *ginfo, struct objfile *objfile)
msym = lookup_minimal_symbol (ginfo->name, NULL, objfile);
if (msym)
- ginfo->bfd_section = SYMBOL_BFD_SECTION (msym);
+ {
+ ginfo->bfd_section = SYMBOL_BFD_SECTION (msym);
+ ginfo->section = SYMBOL_SECTION (msym);
+ }
}
struct symbol *
@@ -537,7 +536,7 @@ fixup_symbol_section (struct symbol *sym, struct objfile *objfile)
return sym;
}
-static struct partial_symbol *
+struct partial_symbol *
fixup_psymbol_section (struct partial_symbol *psym, struct objfile *objfile)
{
if (!psym)