This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
elf_symfile_read tidy
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gdb-patches at sourceware dot org
- Date: Tue, 27 Dec 2005 14:39:05 +1030
- Subject: elf_symfile_read tidy
This bit of code is unnecessary since
http://sources.redhat.com/ml/binutils/2005-10/msg00008.html.
Applying as obvious.
* elfread.c (elf_symfile_read): Don't make synth syms global.
Index: gdb/elfread.c
===================================================================
RCS file: /cvs/src/src/gdb/elfread.c,v
retrieving revision 1.53
diff -u -p -r1.53 elfread.c
--- gdb/elfread.c 17 Dec 2005 22:33:59 -0000 1.53
+++ gdb/elfread.c 27 Dec 2005 03:59:29 -0000
@@ -530,13 +530,7 @@ elf_symfile_read (struct objfile *objfil
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);
}
--
Alan Modra
IBM OzLabs - Linux Technology Centre