* elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on
synthetic syms.
This commit is contained in:
parent
9698b410b6
commit
65a7a66f3a
@ -1,3 +1,8 @@
|
||||
2005-10-03 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on
|
||||
synthetic syms.
|
||||
|
||||
2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* Makefile.am: Run "make dep-am".
|
||||
|
@ -8270,6 +8270,10 @@ _bfd_elf_get_synthetic_symtab (bfd *abfd,
|
||||
continue;
|
||||
|
||||
*s = **p->sym_ptr_ptr;
|
||||
/* Undefined syms won't have BSF_LOCAL or BSF_GLOBAL set. Since
|
||||
we are defining a symbol, ensure one of them is set. */
|
||||
if ((s->flags & BSF_LOCAL) == 0)
|
||||
s->flags |= BSF_GLOBAL;
|
||||
s->section = plt;
|
||||
s->value = addr - plt->vma;
|
||||
s->name = names;
|
||||
|
Loading…
x
Reference in New Issue
Block a user