[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / arm-icf-exidx.s
blobb4644c814fb6daa213fc2a5d7757945643dc0b9e
1 // REQUIRES: arm
2 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t
3 // RUN: ld.lld %t -o %t2 --icf=all
4 // RUN: llvm-objdump -s -d --triple=armv7a-none-linux-gnueabi %t2 | FileCheck %s
6 .syntax unified
7 .section .text.f,"axG",%progbits,f,comdat
8 f:
9 .fnstart
10 bx lr
11 .fnend
13 .section .text.g,"axG",%progbits,g,comdat
15 .fnstart
16 bx lr
17 .fnend
19 .section .text.h
20 .global __aeabi_unwind_cpp_pr0
21 __aeabi_unwind_cpp_pr0:
22 nop
23 bx lr
25 // CHECK: Contents of section .ARM.exidx:
26 // CHECK-NEXT: 100d4 18000100 b0b0b080 14000100 01000000
28 // CHECK: Disassembly of section .text:
29 // CHECK-EMPTY:
30 // CHECK-NEXT: <g>:
31 // CHECK-NEXT: 200ec: e12fff1e bx lr
32 // CHECK: <__aeabi_unwind_cpp_pr0>:
33 // CHECK-NEXT: 200f0: e320f000 nop
34 // CHECK-NEXT: 200f4: e12fff1e bx lr