[PATCH] [IAS] Support '.word foo-.' on targets that permit this (e.g. Mips).

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Jun 1 08:15:34 PDT 2015


I fixed the tip of the iceberg in r238751. It should be somewhat easy
to add the other sizes.

On 29 May 2015 at 12:10, Daniel Sanders <daniel.sanders at imgtec.com> wrote:
> This is necessary to support DW_EH_PE_pcrel encoded TType references in the
> exception handling LSDA on Mips.
>
> Previously for Mips, IAS would emit an R_MIPS_32 relocation given
> '.word foo-.' making it functionally equivalent to '.word foo'. It now
> emits a R_MIPS_PC32 relocation. Despite the name, R_MIPS_PC32 has
> historically been used on data sections and the 'PC' in this context is
> the address of the data being fixed up.
>
> http://reviews.llvm.org/D10125
>
> Files:
>   include/llvm/MC/MCStreamer.h
>   lib/MC/MCObjectStreamer.cpp
>   lib/MC/MCStreamer.cpp
>   lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
>   lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
>   lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
>   test/MC/Mips/data-relocations.s
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list