1## Test that we don't create a .ARM.exidx for the main partition. 2## Previously we were doing so, which is unnecessary and led to a crash. 3 4# REQUIRES: arm 5# RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/shared.s -o %t1.o 6# RUN: ld.lld -shared %t1.o -o %t.so 7# RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o 8 9# RUN: ld.lld -shared --gc-sections --dynamic-linker foo %t.o %t.so -o %t 10# RUN: llvm-readelf --section-headers %t | FileCheck %s 11 12# CHECK: .ARM.exidx 13# CHECK-NOT: .ARM.exidx 14 15.section .llvm_sympart,"",%llvm_sympart 16.asciz "part1" 17.4byte p1 18 19.section .text.p1,"ax",%progbits 20.globl p1 21p1: 22.fnstart 23bx lr 24.cantunwind 25.fnend 26