mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 05:31:06 +00:00
Fix PR8878.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122658 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5e09eefe95
commit
7a54997d67
@ -1610,6 +1610,7 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||
assert(Modifier == MCSymbolRefExpr::VK_None);
|
||||
Type = ELF::R_X86_64_PC64;
|
||||
break;
|
||||
case X86::reloc_signed_4byte:
|
||||
case X86::reloc_riprel_4byte_movq_load:
|
||||
case FK_Data_4: // FIXME?
|
||||
case X86::reloc_riprel_4byte:
|
||||
|
@ -16,6 +16,7 @@ bar:
|
||||
leaq foo@DTPOFF(%rax), %rcx # R_X86_64_DTPOFF32
|
||||
pushq $bar
|
||||
movq foo(%rip), %rdx
|
||||
leaq foo-bar(%r14),%r14
|
||||
|
||||
|
||||
// CHECK: # Section 0x00000001
|
||||
@ -105,3 +106,9 @@ bar:
|
||||
// CHECK-NEXT: ('r_sym', 0x00000006)
|
||||
// CHECK-NEXT: ('r_type', 0x00000002)
|
||||
// CHECK-NEXT: ('r_addend', 0xfffffffc)
|
||||
|
||||
// CHECK: # Relocation 0x0000000d
|
||||
// CHECK-NEXT: (('r_offset', 0x0000005c)
|
||||
// CHECK-NEXT: ('r_sym', 0x00000006)
|
||||
// CHECK-NEXT: ('r_type', 0x00000002)
|
||||
// CHECK-NEXT: ('r_addend', 0x0000005c)
|
||||
|
Loading…
Reference in New Issue
Block a user