[PATCH] [SPARC] Repair GOT references to internal symbols.

James Y Knight jyknight at google.com
Mon Jun 15 08:10:47 PDT 2015


They had been getting emitted as a section + offset reference, which
is bogus since the value needs to be the offset within the GOT, not
the actual address of the symbol's object.

http://reviews.llvm.org/D10441

Files:
  include/llvm/Support/ELFRelocs/Sparc.def
  lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
  lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
  test/CodeGen/SPARC/obj-relocs.ll
  test/MC/Sparc/sparc-pic.s

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10441.27674.patch
Type: text/x-patch
Size: 7013 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150615/0932e9b6/attachment.bin>


More information about the llvm-commits mailing list