llvm-project/lld/test/elf/Mips/e-flags-merge-6-64.test

80 lines
1.8 KiB
Plaintext

# Check selecting ELF header ARCH flag.
# RUN: yaml2obj -format=elf -docnum 1 %s > %t-m3.o
# RUN: yaml2obj -format=elf -docnum 2 %s > %t-m5.o
# RUN: yaml2obj -format=elf -docnum 3 %s > %t-m64.o
# RUN: yaml2obj -format=elf -docnum 4 %s > %t-m64r2.o
# RUN: lld -flavor gnu -target mips64el -shared -o %t.so \
# RUN: %t-m64.o %t-m5.o %t-m64r2.o %t-m3.o
# RUN: llvm-readobj -file-headers %t.so | FileCheck %s
# CHECK: Flags [ (0x80000000)
# CHECK-NEXT: EF_MIPS_ARCH_64R2 (0x80000000)
# CHECK-NEXT: ]
# m3.o
---
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
Flags: [EF_MIPS_ARCH_3]
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 0x10
Size: 0x08
# m5.o
---
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
Flags: [EF_MIPS_ARCH_5]
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 0x10
Size: 0x08
# m64.o
---
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
Flags: [EF_MIPS_ARCH_64]
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 0x10
Size: 0x08
# m64r2.o
---
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
Flags: [EF_MIPS_ARCH_64R2]
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 0x10
Size: 0x08
...