# Check that the linker copies ELF header flags from the single input object # file to the generated executable # RUN: yaml2obj -format=elf %s > %t.o # RUN: lld -flavor old-gnu -target mipsel -e T -o %t.exe %t.o # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # CHECK: Flags [ (0x52001001) # CHECK-NEXT: EF_MIPS_ABI_O32 (0x1000) # CHECK-NEXT: EF_MIPS_ARCH_32 (0x50000000) # CHECK-NEXT: EF_MIPS_MICROMIPS (0x2000000) # CHECK-NEXT: EF_MIPS_NOREORDER (0x1) # CHECK-NEXT: ] --- FileHeader: Class: ELFCLASS32 Data: ELFDATA2LSB Type: ET_REL Machine: EM_MIPS Flags: [EF_MIPS_ABI_O32, EF_MIPS_ARCH_32, EF_MIPS_NOREORDER, EF_MIPS_MICROMIPS] Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] AddressAlign: 0x04 Size: 0x04 Symbols: Global: - Name: T Section: .text ...