mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 04:31:17 +00:00
Add parsing of 'foo@local".
Summary: Currently, it supports generating, but not parsing, this expression. Test added as well. Test Plan: New test added, no regressions due to this. Reviewers: hfinkel Reviewed By: hfinkel Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6672 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224415 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
650708838d
commit
5fa882a5b7
@ -353,6 +353,7 @@ MCSymbolRefExpr::getVariantKindForName(StringRef Name) {
|
||||
.Case("got@h", VK_PPC_GOT_HI)
|
||||
.Case("GOT@HA", VK_PPC_GOT_HA)
|
||||
.Case("got@ha", VK_PPC_GOT_HA)
|
||||
.Case("local", VK_PPC_LOCAL)
|
||||
.Case("TOCBASE", VK_PPC_TOCBASE)
|
||||
.Case("tocbase", VK_PPC_TOCBASE)
|
||||
.Case("TOC", VK_PPC_TOC)
|
||||
|
@ -7,11 +7,13 @@
|
||||
.align 2
|
||||
foo:
|
||||
bl printf@plt
|
||||
bl _GLOBAL_OFFSET_TABLE_@local-4
|
||||
.LC1:
|
||||
.size foo, . - foo
|
||||
|
||||
# CHECK: Relocations [
|
||||
# CHECK-NEXT: Section (2) .rela.text {
|
||||
# CHECK-NEXT: 0x0 R_PPC_PLTREL24 printf 0x0
|
||||
# CHECK-NEXT: 0x4 R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_ 0xFFFFFFFC
|
||||
# CHECK-NEXT: }
|
||||
# CHECK-NEXT: ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user