mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
--- Merging r127780 into '.':
U test/MC/ELF/tls-i386.s U lib/MC/MCELFStreamer.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128032 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1b858c8e37
commit
7520d84941
@ -291,15 +291,18 @@ void MCELFStreamer::fixSymbolsInTLSFixups(const MCExpr *expr) {
|
||||
switch (symRef.getKind()) {
|
||||
default:
|
||||
return;
|
||||
case MCSymbolRefExpr::VK_GOTTPOFF:
|
||||
case MCSymbolRefExpr::VK_INDNTPOFF:
|
||||
case MCSymbolRefExpr::VK_NTPOFF:
|
||||
case MCSymbolRefExpr::VK_GOTNTPOFF:
|
||||
case MCSymbolRefExpr::VK_TLSGD:
|
||||
case MCSymbolRefExpr::VK_TLSLD:
|
||||
case MCSymbolRefExpr::VK_TLSLDM:
|
||||
case MCSymbolRefExpr::VK_TPOFF:
|
||||
case MCSymbolRefExpr::VK_DTPOFF:
|
||||
case MCSymbolRefExpr::VK_GOTTPOFF:
|
||||
case MCSymbolRefExpr::VK_TLSLD:
|
||||
case MCSymbolRefExpr::VK_ARM_TLSGD:
|
||||
case MCSymbolRefExpr::VK_ARM_TPOFF:
|
||||
case MCSymbolRefExpr::VK_ARM_GOTTPOFF:
|
||||
break;
|
||||
}
|
||||
MCSymbolData &SD = getAssembler().getOrCreateSymbolData(symRef.getSymbol());
|
||||
|
@ -8,6 +8,7 @@
|
||||
movl foo4@TLSLDM(%eax), %eax
|
||||
movl foo5@TPOFF(%eax), %eax
|
||||
movl foo6@DTPOFF(%eax), %eax
|
||||
movl foo7@INDNTPOFF, %eax
|
||||
|
||||
// CHECK: (('st_name', 0x00000001) # 'foo1'
|
||||
// CHECK-NEXT: ('st_value', 0x00000000)
|
||||
@ -62,3 +63,12 @@
|
||||
// CHECK-NEXT: ('st_other', 0x00000000)
|
||||
// CHECK-NEXT: ('st_shndx', 0x00000000)
|
||||
// CHECK-NEXT: ),
|
||||
// CHECK-NEXT: # Symbol 0x0000000b
|
||||
// CHECK-NEXT: (('st_name', 0x0000001f) # 'foo7'
|
||||
// CHECK-NEXT: ('st_value', 0x00000000)
|
||||
// CHECK-NEXT: ('st_size', 0x00000000)
|
||||
// CHECK-NEXT: ('st_bind', 0x00000001)
|
||||
// CHECK-NEXT: ('st_type', 0x00000006)
|
||||
// CHECK-NEXT: ('st_other', 0x00000000)
|
||||
// CHECK-NEXT: ('st_shndx', 0x00000000)
|
||||
// CHECK-NEXT: ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user