1 # Check selecting ELF header ARCH flag.
3 # RUN: yaml2obj -format=elf -docnum 1 %s > %t-m1.o
4 # RUN: yaml2obj -format=elf -docnum 2 %s > %t-m2.o
5 # RUN: yaml2obj -format=elf -docnum 3 %s > %t-m32.o
6 # RUN: yaml2obj -format=elf -docnum 4 %s > %t-m32r2.o
8 # RUN: lld -flavor gnu -target mipsel -shared -o %t.so \
9 # RUN: %t-m32.o %t-m2.o %t-m32r2.o %t-m1.o
10 # RUN: llvm-readobj -file-headers %t.so | FileCheck %s
12 # CHECK: Flags [ (0x70001000)
13 # CHECK-NEXT: EF_MIPS_ABI_O32 (0x1000)
14 # CHECK-NEXT: EF_MIPS_ARCH_32R2 (0x70000000)
24 Flags: [EF_MIPS_ABI_O32, EF_MIPS_ARCH_1]
29 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
40 Flags: [EF_MIPS_ABI_O32, EF_MIPS_ARCH_2]
45 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
56 Flags: [EF_MIPS_ABI_O32, EF_MIPS_ARCH_32]
61 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
72 Flags: [EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R2]
77 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]