mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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
29 lines
735 B
ArmAsm
29 lines
735 B
ArmAsm
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -t -r --expand-relocs | FileCheck %s
|
|
|
|
// Test that we can forward reference a section.
|
|
|
|
mov .rodata, %rsi
|
|
.section .rodata
|
|
|
|
// CHECK:Relocations [
|
|
// CHECK: Section {{.*}} .rela.text {
|
|
// CHECK: Relocation {
|
|
// CHECK: Offset: 0x4
|
|
// CHECK: Type: R_X86_64_32S (11)
|
|
// CHECK: Symbol: .rodata
|
|
// CHECK: Addend: 0x0
|
|
// CHECK: }
|
|
// CHECK: }
|
|
// CHECK:]
|
|
|
|
// There is only one .rodata symbol
|
|
|
|
// CHECK:Symbols [
|
|
// CHECK-NOT: Name: .rodata
|
|
// CHECK: Name: .rodata
|
|
// CHECK-NEXT: Value: 0x0
|
|
// CHECK-NEXT: Size: 0
|
|
// CHECK-NEXT: Binding: Local (0x0)
|
|
// CHECK-NEXT: Type: Section (0x3)
|
|
// CHECK-NOT: Name: .rodata
|