• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5
6 .syntax unified
7 .section        .text.f,"axG",%progbits,f,comdat
8f:
9 .fnstart
10 bx      lr
11 .fnend
12
13 .section        .text.g,"axG",%progbits,g,comdat
14g:
15 .fnstart
16 bx      lr
17 .fnend
18
19 .section .text.h
20 .global __aeabi_unwind_cpp_pr0
21__aeabi_unwind_cpp_pr0:
22 nop
23 bx lr
24
25// CHECK: Contents of section .ARM.exidx:
26// CHECK-NEXT:  100d4 18000100 b0b0b080 14000100 01000000
27
28// CHECK: Disassembly of section .text:
29// CHECK-EMPTY:
30// CHECK-NEXT: <g>:
31// CHECK-NEXT:    200ec:        1e ff 2f e1     bx      lr
32// CHECK: <__aeabi_unwind_cpp_pr0>:
33// CHECK-NEXT:    200f0:        00 f0 20 e3     nop
34// CHECK-NEXT:    200f4:        1e ff 2f e1     bx      lr
35