aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2008-06-30 20:51:58 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2008-06-30 20:51:58 +0000
commit6ba2a41553ce33bc63e4ee1beef0ff1193e3ed70 (patch)
tree559f118c13eabd2eb577ce41a549eadd726d0c70 /bfd/elf.c
parent5adf97213b7f2e27834539bdf4d0ef8799d53a95 (diff)
downloadgdb-6ba2a41553ce33bc63e4ee1beef0ff1193e3ed70.zip
gdb-6ba2a41553ce33bc63e4ee1beef0ff1193e3ed70.tar.gz
gdb-6ba2a41553ce33bc63e4ee1beef0ff1193e3ed70.tar.bz2
bfd/
* syms.c (BSF_SYNTHETIC): New flag. * elf.c (_bfd_elf_get_synthetic_symtab): Set it. * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise. * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise. * bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour for synthetic symbols. * bfd-in2.h: Regenerate. opcodes/ * mips-dis.c (_print_insn_mips): Use bfd_asymbol_flavour to check for ELF symbols.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index c5da23b..c79c311 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -8785,6 +8785,7 @@ _bfd_elf_get_synthetic_symtab (bfd *abfd,
we are defining a symbol, ensure one of them is set. */
if ((s->flags & BSF_LOCAL) == 0)
s->flags |= BSF_GLOBAL;
+ s->flags |= BSF_SYNTHETIC;
s->section = plt;
s->value = addr - plt->vma;
s->name = names;