diff options
Diffstat (limited to 'test/old-elf/Mips/mips-options-03.test')
-rw-r--r-- | test/old-elf/Mips/mips-options-03.test | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/old-elf/Mips/mips-options-03.test b/test/old-elf/Mips/mips-options-03.test new file mode 100644 index 0000000000000..a0dea5709b6fd --- /dev/null +++ b/test/old-elf/Mips/mips-options-03.test @@ -0,0 +1,41 @@ +# Check handling a zero-filled input .MIPS.options section. + +# RUN: yaml2obj -format=elf %s > %t.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t.o +# RUN: llvm-objdump -s -t %t.so | FileCheck %s + +# CHECK: Contents of section .MIPS.options: +# CHECK-NEXT: {{[0-9a-f]+}} 01280000 00000000 00000000 00000000 +# CHECK-NEXT: {{[0-9a-f]+}} 00000000 00000000 00000000 00000000 +# CHECK-NEXT: {{[0-9a-f]+}} f08f0000 00000000 + +# CHECK: SYMBOL TABLE: +# CHECK: 00008ff0 g *ABS* 00000000 _gp + +FileHeader: + Class: ELFCLASS64 + Data: ELFDATA2LSB + Type: ET_REL + Machine: EM_MIPS + Flags: [EF_MIPS_CPIC, EF_MIPS_PIC, EF_MIPS_ARCH_64R2] + +Sections: +- Name: .text + Type: SHT_PROGBITS + Size: 4 + AddressAlign: 16 + Flags: [ SHF_ALLOC, SHF_EXECINSTR ] + +- Name: .MIPS.options + Type: SHT_MIPS_OPTIONS + Flags: [ SHF_ALLOC ] + AddressAlign: 8 + Content: "01280000000000000000000000000000000000000000000000000000000000000000000000000000" + +Symbols: + Global: + - Name: T0 + Section: .text + Type: STT_FUNC + Value: 0 + Size: 4 |