1// REQUIRES: arm 2// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t 3// Use Linker script without .ARM.exidx Output Section so it is treated as 4// an orphan. We must still add the sentinel table entry 5// RUN: echo "SECTIONS { \ 6// RUN: .text 0x11000 : { *(.text*) } \ 7// RUN: } " > %t.script 8// RUN: ld.lld --no-merge-exidx-entries --script %t.script %t -o %t2 9// RUN: llvm-objdump -s --triple=armv7a-none-linux-gnueabi %t2 | FileCheck %s 10 11 .syntax unified 12 .text 13 .global _start 14_start: 15 .fnstart 16 .cantunwind 17 bx lr 18 .fnend 19 20// CHECK: Contents of section .ARM.exidx: 21// 11004 - 4 = 0x11000 = _start 22// 1100c - 8 = 0x11004 = _start + sizeof(_start) 23// CHECK-NEXT: 0000 00100100 01000000 fc0f0100 01000000 24