[PATCH] D13173: [SPARC] Improve PIC vs non-PIC handling

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 12:04:04 PDT 2015


joerg created this revision.
joerg added reviewers: jyknight, venkatra.
joerg added a subscriber: llvm-commits.
Herald added a subscriber: jyknight.

SPARC has a somewhat strange handling of %lo and %hi modifiers. The existing implementation doesn't agree with the behavior observed with GNU as and we've been missing the corresponding logic for .set. With the patch, I get exactly the same relocations as with GNU as and most importantly, no longer .text relocations in NetBSD's libc.

http://reviews.llvm.org/D13173

Files:
  lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
  test/MC/Sparc/sparc-pic.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13173.35752.patch
Type: text/x-patch
Size: 6137 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150925/ed1a8665/attachment.bin>


More information about the llvm-commits mailing list