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

Daniel Sanders Daniel.Sanders at imgtec.com
Mon Jun 1 08:21:06 PDT 2015


Thanks. That's much simpler than what I was doing. I'll go through the others. 

> -----Original Message-----
> From: Rafael EspĂ­ndola [mailto:rafael.espindola at gmail.com]
> Sent: 01 June 2015 16:16
> To: reviews+D10125+public+acb5e01b1aaf33a2 at reviews.llvm.org
> Cc: Daniel Sanders; llvm-commits
> Subject: Re: [PATCH] [IAS] Support '.word foo-.' on targets that permit this
> (e.g. Mips).
> 
> 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