mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
* elfread.c (elf_symfile_read): Don't make synth syms global.
This commit is contained in:
parent
ac39eb42f4
commit
9f20e3dae5
@ -1,3 +1,7 @@
|
|||||||
|
2005-12-27 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elfread.c (elf_symfile_read): Don't make synth syms global.
|
||||||
|
|
||||||
2005-12-26 Mark Kettenis <kettenis@gnu.org>
|
2005-12-26 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* sparc64obsd-tdep.c: Include "obsd-tdep.h".
|
* sparc64obsd-tdep.c: Include "obsd-tdep.h".
|
||||||
|
@ -530,13 +530,7 @@ elf_symfile_read (struct objfile *objfile, int mainline)
|
|||||||
make_cleanup (xfree, synthsyms);
|
make_cleanup (xfree, synthsyms);
|
||||||
synth_symbol_table = xmalloc (sizeof (asymbol *) * synthcount);
|
synth_symbol_table = xmalloc (sizeof (asymbol *) * synthcount);
|
||||||
for (i = 0; i < synthcount; i++)
|
for (i = 0; i < synthcount; i++)
|
||||||
{
|
synth_symbol_table[i] = synthsyms + 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;
|
|
||||||
}
|
|
||||||
make_cleanup (xfree, synth_symbol_table);
|
make_cleanup (xfree, synth_symbol_table);
|
||||||
elf_symtab_read (objfile, 0, synthcount, synth_symbol_table);
|
elf_symtab_read (objfile, 0, synthcount, synth_symbol_table);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user