From 6ba2a41553ce33bc63e4ee1beef0ff1193e3ed70 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 30 Jun 2008 20:51:58 +0000 Subject: 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. --- bfd/elf32-ppc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bfd/elf32-ppc.c') diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 2dafde7..0ad1175 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -2450,6 +2450,7 @@ ppc_elf_get_synthetic_symtab (bfd *abfd, long symcount, asymbol **syms, 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 = glink; s->value = stub_vma - glink->vma; s->name = names; @@ -2466,7 +2467,7 @@ ppc_elf_get_synthetic_symtab (bfd *abfd, long symcount, asymbol **syms, /* Add a symbol at the start of the glink branch table. */ memset (s, 0, sizeof *s); s->the_bfd = abfd; - s->flags = BSF_GLOBAL; + s->flags = BSF_GLOBAL | BSF_SYNTHETIC; s->section = glink; s->value = glink_vma - glink->vma; s->name = names; @@ -2480,7 +2481,7 @@ ppc_elf_get_synthetic_symtab (bfd *abfd, long symcount, asymbol **syms, /* Add a symbol for the glink PLT resolver. */ memset (s, 0, sizeof *s); s->the_bfd = abfd; - s->flags = BSF_GLOBAL; + s->flags = BSF_GLOBAL | BSF_SYNTHETIC; s->section = glink; s->value = resolv_vma - glink->vma; s->name = names; -- cgit v1.1