brintos

brintos / llvm-project-archived public Read only

0
0
Text · 745 B · 61e8dfc Raw
24 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t3// Use Linker script without .ARM.exidx Output Section so it is treated as4// an orphan. We must still add the sentinel table entry5// RUN: echo "SECTIONS { \6// RUN:          .text 0x11000 : { *(.text*) } \7// RUN:          } " > %t.script8// RUN: ld.lld --no-merge-exidx-entries --script %t.script %t -o %t29// RUN: llvm-objdump -s --triple=armv7a-none-linux-gnueabi %t2 | FileCheck %s10 11 .syntax unified12 .text13 .global _start14_start:15 .fnstart16 .cantunwind17 bx lr18 .fnend19 20// CHECK: Contents of section .ARM.exidx:21// 11004 - 4 = 0x11000 = _start22// 1100c - 8 = 0x11004 = _start + sizeof(_start)23// CHECK-NEXT: 0000 00100100 01000000 fc0f0100 0100000024