]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove magic treatment of toc symbols for powerpc ELF
authorAlan Modra <amodra@gmail.com>
Wed, 5 Mar 2014 08:57:57 +0000 (19:27 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 5 Mar 2014 08:57:57 +0000 (19:27 +1030)
commitf50c47f1184b39831f7c8a8200bc349f47619ac3
tree4edc57abf92eaed468e6a165c928d5fdf783ec47
parentb2b255bdf3d29d97c10668b4bb5fceeb886a15f1
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
gas/config/tc-ppc.c