From f50c47f1184b39831f7c8a8200bc349f47619ac3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 5 Mar 2014 19:27:57 +1030 Subject: Remove magic treatment of toc symbols for powerpc ELF The XCOFF assembler does some wierd things with instructions like `lwz 9,sym(30'. See the comment in md_apply_fix. From an ELF perspective, it's weird even to magically select a TOC16 reloc when a symbol is in the TOC/GOT. ELF assemblers generally use modifiers like @toc to select relocs, so remove this "feature" for ELF. I believe this was to support gcc -m32 -mcall-aixdesc but that combination of gcc options has been broken for a long time. * config/tc-ppc.c (ppc_is_toc_sym): Remove OBJ_ELF support. (md_assemble): Don't call ppc_is_toc_sym for ELF. --- gas/ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gas/ChangeLog') diff --git a/gas/ChangeLog b/gas/ChangeLog index 88e9d81..e3ebd67 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2014-03-05 Alan Modra + + * config/tc-ppc.c (ppc_is_toc_sym): Remove OBJ_ELF support. + (md_assemble): Don't call ppc_is_toc_sym for ELF. + 2014-03-04 Heiher * config/tc-mips.c (mips_cpu_info_table): Use ISA_MIPS64R2 for -- cgit v1.1