| # 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 mips64el -e T -o %t.exe %t.o |
| # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s |
| |
| # CHECK: Flags [ (0x62000001) |
| # CHECK-NEXT: EF_MIPS_ARCH_64 (0x60000000) |
| # CHECK-NEXT: EF_MIPS_MICROMIPS (0x2000000) |
| # CHECK-NEXT: EF_MIPS_NOREORDER (0x1) |
| # CHECK-NEXT: ] |
| |
| --- |
| FileHeader: |
| Class: ELFCLASS64 |
| Data: ELFDATA2LSB |
| Type: ET_REL |
| Machine: EM_MIPS |
| Flags: [ EF_MIPS_ARCH_64, EF_MIPS_NOREORDER, EF_MIPS_MICROMIPS ] |
| |
| Sections: |
| - Name: .text |
| Type: SHT_PROGBITS |
| Flags: [ SHF_ALLOC, SHF_EXECINSTR ] |
| AddressAlign: 0x10 |
| Size: 0x08 |
| |
| Symbols: |
| Global: |
| - Name: T |
| Section: .text |
| ... |