mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
Without this flag set, an AArch64 Linux kernel won't try to load the executable (even if a 32 bit arm kernel will run the binary just fine). Patch by Martin Storsjö! Differential revision: https://reviews.llvm.org/D24471 llvm-svn: 281394
15 lines
333 B
ArmAsm
15 lines
333 B
ArmAsm
// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
|
|
// RUN: ld.lld -static %t.o -o %tout
|
|
// RUN: llvm-readobj -file-headers %tout | FileCheck %s
|
|
// REQUIRES: arm
|
|
.syntax unified
|
|
.text
|
|
.globl _start
|
|
_start:
|
|
bx lr
|
|
|
|
// CHECK: Flags [
|
|
// CHECK-NEXT: 0x1000000
|
|
// CHECK-NEXT: 0x4000000
|
|
// CHECK-NEXT: ]
|