mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
f194367792
Many of these predate llvm-readobj. With elf-dump we had to match a relocation to symbol number and symbol number to symbol name or section number. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235015 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
550 B
ArmAsm
21 lines
550 B
ArmAsm
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck --check-prefix=ELF %s
|
|
// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin %s -o - | llvm-readobj -r | FileCheck --check-prefix=MACHO %s
|
|
|
|
|
|
bar = foo + 4
|
|
.globl bar
|
|
.long bar
|
|
|
|
// ELF: Relocations [
|
|
// ELF-NEXT: Section {{.*}} .rela.text {
|
|
// ELF-NEXT: 0x0 R_X86_64_32 foo 0x4
|
|
// ELF-NEXT: }
|
|
// ELF-NEXT: ]
|
|
|
|
|
|
// MACHO: Relocations [
|
|
// MACHO: Section __text {
|
|
// MACHO: 0x0 0 2 1 X86_64_RELOC_UNSIGNED 0 bar
|
|
// MACHO: }
|
|
// MACHO: ]
|