• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: arm
2# RUN: llvm-mc -filetype=obj -triple=armv7-unknown-linux %s -o %tarm
3# RUN: ld.lld -m armelf %tarm -o %t2arm
4# RUN: llvm-readobj --file-headers %t2arm | FileCheck --check-prefix=ARM %s
5# RUN: ld.lld -m armelf_linux_eabi %tarm -o %t3arm
6# RUN: llvm-readobj --file-headers %t3arm | FileCheck --check-prefix=ARM %s
7# RUN: ld.lld %tarm -o %t4arm
8# RUN: llvm-readobj --file-headers %t4arm | FileCheck --check-prefix=ARM %s
9# RUN: echo 'OUTPUT_FORMAT(elf32-littlearm)' > %t5arm.script
10# RUN: ld.lld %t5arm.script %tarm -o %t5arm
11# RUN: llvm-readobj --file-headers %t5arm | FileCheck --check-prefix=ARM %s
12# ARM:      ElfHeader {
13# ARM-NEXT:   Ident {
14# ARM-NEXT:     Magic: (7F 45 4C 46)
15# ARM-NEXT:     Class: 32-bit (0x1)
16# ARM-NEXT:     DataEncoding: LittleEndian (0x1)
17# ARM-NEXT:     FileVersion: 1
18# ARM-NEXT:     OS/ABI: SystemV (0x0)
19# ARM-NEXT:     ABIVersion: 0
20# ARM-NEXT:     Unused: (00 00 00 00 00 00 00)
21# ARM-NEXT:   }
22# ARM-NEXT:   Type: Executable (0x2)
23# ARM-NEXT:   Machine: EM_ARM (0x28)
24# ARM-NEXT:   Version: 1
25
26.globl _start
27_start:
28