24 lines
666 B
ArmAsm
24 lines
666 B
ArmAsm
// REQUIRES: arm
|
|
// RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o %t.o
|
|
// RUN: ld.lld -r %t.o -o %t
|
|
// RUN: llvm-readobj -S %t | FileCheck %s
|
|
|
|
// RUN: llvm-mc %s -triple=armv7eb-unknown-linux-gnueabi -mcpu=cortex-a8 -filetype=obj -o %t.o
|
|
// RUN: ld.lld -r %t.o -o %t
|
|
// RUN: llvm-readobj -S %t | FileCheck %s
|
|
// RUN: ld.lld --be8 -r %t.o -o %t
|
|
// RUN: llvm-readobj -S %t | FileCheck %s
|
|
|
|
// Check that when doing a relocatable link we don't add a terminating entry
|
|
// to the .ARM.exidx section
|
|
.syntax unified
|
|
.text
|
|
_start:
|
|
.fnstart
|
|
.cantunwind
|
|
bx lr
|
|
.fnend
|
|
|
|
// Expect 1 table entry of size 8
|
|
// CHECK: Name: .ARM.exidx
|
|
// CHECK: Size: 8
|