[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / relocatable-ehframe.s
blobc4ce01ec86543032b8abe377e3ceee0eb2083699
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/relocatable-ehframe.s -o %t2.o
4 # RUN: ld.lld -r %t1.o %t2.o -o %t
5 # RUN: llvm-readobj -r -S --section-data %t | FileCheck %s
7 # CHECK: Name: .strtab
8 # CHECK-NEXT: Type: SHT_STRTAB
9 # CHECK-NEXT: Flags [
10 # CHECK-NEXT: ]
11 # CHECK-NEXT: Address:
12 # CHECK-NEXT: Offset
13 # CHECK-NEXT: Size: 8
14 # CHECK-NEXT: Link: 0
15 # CHECK-NEXT: Info: 0
16 # CHECK-NEXT: AddressAlignment: 1
17 # CHECK-NEXT: EntrySize: 0
18 # CHECK-NEXT: SectionData (
19 # CHECK-NEXT: 0000: 005F7374 61727400 |._start.|
20 # CHECK-NEXT: )
22 # CHECK: Relocations [
23 # CHECK-NEXT: Section {{.*}} .rela.eh_frame {
24 # CHECK-NEXT: 0x20 R_X86_64_PC32 foo 0x0
25 # CHECK-NEXT: 0x34 R_X86_64_PC32 bar 0x0
26 # CHECK-NEXT: 0x48 R_X86_64_PC32 dah 0x0
27 # CHECK-NEXT: 0x78 R_X86_64_PC32 foo1 0x0
28 # CHECK-NEXT: 0x8C R_X86_64_PC32 bar1 0x0
29 # CHECK-NEXT: 0xA0 R_X86_64_PC32 dah1 0x0
30 # CHECK-NEXT: }
31 # CHECK-NEXT: ]
33 .section foo,"ax",@progbits
34 .cfi_startproc
35 nop
36 .cfi_endproc
38 .section bar,"ax",@progbits
39 .cfi_startproc
40 nop
41 .cfi_endproc
43 .section dah,"ax",@progbits
44 .cfi_startproc
45 nop
46 .cfi_endproc
48 .text
49 .globl _start
50 _start:
51 nop