From: Alan Modra Date: Mon, 3 Oct 2005 03:41:56 +0000 (+0000) Subject: * elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on X-Git-Tag: gdb-csl-arm-20051020-branchpoint~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65a7a66f3a02426753f47fe598c454d575d7f204;p=external%2Fbinutils.git * elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on synthetic syms. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 598b950..683a88b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-10-03 Alan Modra + + * elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on + synthetic syms. + 2005-09-30 H.J. Lu * Makefile.am: Run "make dep-am". diff --git a/bfd/elf.c b/bfd/elf.c index fe4c8fd..b1b73a0 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -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;