summaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 9b8233cc829..19aaed35dc8 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -328,7 +328,10 @@ elf_symtab_read (struct objfile *objfile, int type,
(sym->name, strlen (sym->name), copy_names,
symaddr, mst_solib_trampoline, sect, objfile);
if (msym != NULL)
- msym->filename = filesymname;
+ {
+ msym->filename = filesymname;
+ gdbarch_elf_make_msymbol_special (gdbarch, sym, msym);
+ }
continue;
}