You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
608 B
25 lines
608 B
4 months ago
|
// 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: Type: Section (0x3)
|
||
|
// CHECK: Section: .rodata
|
||
|
// CHECK-NOT: Section: .rodata
|