// REQUIRES: arm
// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t
// RUN: ld.lld %t -o %t2 --icf=all
// RUN: llvm-objdump -s -d --triple=armv7a-none-linux-gnueabi %t2 | FileCheck %s
.syntax unified
.section .text.f,"axG",%progbits,f,comdat
f:
.fnstart
bx lr
.fnend
.section .text.g,"axG",%progbits,g,comdat
g:
.fnstart
bx lr
.fnend
.section .text.h
.global __aeabi_unwind_cpp_pr0
__aeabi_unwind_cpp_pr0:
nop
bx lr
// CHECK: Contents of section .ARM.exidx:
// CHECK-NEXT: 100d4 18000100 b0b0b080 14000100 01000000
// CHECK: Disassembly of section .text:
// CHECK-EMPTY:
// CHECK-NEXT: <g>:
// CHECK-NEXT: 200ec: e12fff1e bx lr
// CHECK: <__aeabi_unwind_cpp_pr0>:
// CHECK-NEXT: 200f0: e320f000 nop
// CHECK-NEXT: 200f4: e12fff1e bx lr