1// REQUIRES: arm
2// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
3// RUN: ld.lld -r %t.o -o %t2.o
4// RUN: ld.lld -shared %t2.o -o /dev/null
5
6// We used to crash using the output of -r because of the relative order of
7// SHF_LINK_ORDER sections.
8
9// That can be fixed by changing -r or making the regular link more flexible,
10// so this is an end to end test.
11
12	.fnstart
13	.fnend
14