diff options
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r-- | gas/config/tc-ppc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 4418182..b26760d 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -2464,7 +2464,7 @@ ppc_elf_localentry (int ignore ATTRIBUTE_UNUSED) if (ok) { bfdsym = symbol_get_bfdsym (sym); - elfsym = elf_symbol_from (bfd_asymbol_bfd (bfdsym), bfdsym); + elfsym = elf_symbol_from (bfdsym); gas_assert (elfsym); elfsym->internal_elf_sym.st_other &= ~STO_PPC64_LOCAL_MASK; elfsym->internal_elf_sym.st_other |= encoded; @@ -6161,8 +6161,7 @@ ppc_force_relocation (fixS *fix) if (fix->fx_addsy) { asymbol *bfdsym = symbol_get_bfdsym (fix->fx_addsy); - elf_symbol_type *elfsym - = elf_symbol_from (bfd_asymbol_bfd (bfdsym), bfdsym); + elf_symbol_type *elfsym = elf_symbol_from (bfdsym); gas_assert (elfsym); if ((STO_PPC64_LOCAL_MASK & elfsym->internal_elf_sym.st_other) != 0) return 1; @@ -6198,8 +6197,7 @@ ppc_fix_adjustable (fixS *fix) if (fix->fx_addsy) { asymbol *bfdsym = symbol_get_bfdsym (fix->fx_addsy); - elf_symbol_type *elfsym - = elf_symbol_from (bfd_asymbol_bfd (bfdsym), bfdsym); + elf_symbol_type *elfsym = elf_symbol_from (bfdsym); gas_assert (elfsym); if ((STO_PPC64_LOCAL_MASK & elfsym->internal_elf_sym.st_other) != 0) return 0; |