forked from OSchip/llvm-project
28 lines
765 B
ArmAsm
28 lines
765 B
ArmAsm
|
// REQUIRES: x86
|
||
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
||
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/abs-hidden.s -o %t2.o
|
||
|
// RUN: ld.lld %t.o %t2.o -o %t.so -shared
|
||
|
// RUN: llvm-readobj -r -s -section-data %t.so | FileCheck %s
|
||
|
|
||
|
.quad foo
|
||
|
|
||
|
// CHECK: Name: .text
|
||
|
// CHECK-NEXT: Type: SHT_PROGBITS
|
||
|
// CHECK-NEXT: Flags [
|
||
|
// CHECK-NEXT: SHF_ALLOC
|
||
|
// CHECK-NEXT: SHF_EXECINSTR
|
||
|
// CHECK-NEXT: ]
|
||
|
// CHECK-NEXT: Address:
|
||
|
// CHECK-NEXT: Offset:
|
||
|
// CHECK-NEXT: Size: 8
|
||
|
// CHECK-NEXT: Link: 0
|
||
|
// CHECK-NEXT: Info: 0
|
||
|
// CHECK-NEXT: AddressAlignment: 4
|
||
|
// CHECK-NEXT: EntrySize: 0
|
||
|
// CHECK-NEXT: SectionData (
|
||
|
// CHECK-NEXT: 0000: 42000000 00000000
|
||
|
// CHECK-NEXT: )
|
||
|
|
||
|
// CHECK: Relocations [
|
||
|
// CHECK-NEXT: ]
|