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

Daniel Sanders daniel.sanders at imgtec.com
Fri May 29 09:10:23 PDT 2015


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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10125.26785.patch
Type: text/x-patch
Size: 5989 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150529/473e05b6/attachment.bin>


More information about the llvm-commits mailing list