diff options
author | Alan Modra <amodra@gmail.com> | 2005-12-27 04:09:40 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-12-27 04:09:40 +0000 |
commit | 9f20e3dae5c9609c1ab55503d177a5ef063f9bb4 (patch) | |
tree | fc0fa91eb1f8c2c8c0da1b6907104bd2e2a7a3a0 /gdb/elfread.c | |
parent | ac39eb42f458c4513a1c5de7d3ba455d94a3c6a9 (diff) | |
download | gdb-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.c | 8 |
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); } |