1 # Check selecting ELF header ARCH flag.
3 # RUN: yaml2obj -format=elf -docnum 1 %s > %t-m3.o
4 # RUN: yaml2obj -format=elf -docnum 2 %s > %t-m5.o
5 # RUN: yaml2obj -format=elf -docnum 3 %s > %t-m64.o
6 # RUN: yaml2obj -format=elf -docnum 4 %s > %t-m64r2.o
8 # RUN: lld -flavor gnu -target mips64el -shared -o %t.so \
9 # RUN: %t-m64.o %t-m5.o %t-m64r2.o %t-m3.o
10 # RUN: llvm-readobj -file-headers %t.so | FileCheck %s
12 # CHECK: Flags [ (0x80000000)
13 # CHECK-NEXT: EF_MIPS_ARCH_64R2 (0x80000000)
23 Flags: [EF_MIPS_ARCH_3]
28 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
39 Flags: [EF_MIPS_ARCH_5]
44 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
55 Flags: [EF_MIPS_ARCH_64]
60 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
71 Flags: [EF_MIPS_ARCH_64R2]
76 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]