aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-12-27 04:09:40 +0000
committerAlan Modra <amodra@gmail.com>2005-12-27 04:09:40 +0000
commit9f20e3dae5c9609c1ab55503d177a5ef063f9bb4 (patch)
treefc0fa91eb1f8c2c8c0da1b6907104bd2e2a7a3a0 /gdb/elfread.c
parentac39eb42f458c4513a1c5de7d3ba455d94a3c6a9 (diff)
downloadgdb-9f20e3dae5c9609c1ab55503d177a5ef063f9bb4.zip
gdb-9f20e3dae5c9609c1ab55503d177a5ef063f9bb4.tar.gz
gdb-9f20e3dae5c9609c1ab55503d177a5ef063f9bb4.tar.bz2
* elfread.c (elf_symfile_read): Don't make synth syms global.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index d2bf2c1..575b088 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -530,13 +530,7 @@ elf_symfile_read (struct objfile *objfile, int mainline)
make_cleanup (xfree, synthsyms);
synth_symbol_table = xmalloc (sizeof (asymbol *) * synthcount);
for (i = 0; i < synthcount; i++)
- {
- synth_symbol_table[i] = synthsyms + i;
- /* Synthetic symbols are not, strictly speaking, either local
- or global. But we can treat them as global symbols, since
- they are effectively dynamic symbols. */
- synth_symbol_table[i]->flags |= BSF_GLOBAL;
- }
+ synth_symbol_table[i] = synthsyms + i;
make_cleanup (xfree, synth_symbol_table);
elf_symtab_read (objfile, 0, synthcount, synth_symbol_table);
}