1 # Check MIPS specific tags in the dynamic table.
4 # RUN: yaml2obj -format=elf %s > %t.o
5 # RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec -o %t.so %t.o
6 # RUN: llvm-readobj -dynamic-table %t.so | FileCheck %s
8 # CHECK: Format: ELF32-mips
10 # CHECK: AddressSize: 32bit
12 # CHECK: DynamicSection [ (13 entries)
13 # CHECK: Tag Type Name/Value
14 # CHECK-NEXT: 0x00000004 HASH 0x{{[0-9A-F]+}}
15 # CHECK-NEXT: 0x00000005 STRTAB 0x{{[0-9A-F]+}}
16 # CHECK-NEXT: 0x00000006 SYMTAB 0x{{[0-9A-F]+}}
17 # CHECK-NEXT: 0x0000000A STRSZ 17 (bytes)
18 # CHECK-NEXT: 0x0000000B SYMENT 16 (bytes)
19 # CHECK-NEXT: 0x70000001 MIPS_RLD_VERSION 1
20 # CHECK-NEXT: 0x70000005 MIPS_FLAGS NOTPOT
21 # CHECK-NEXT: 0x70000006 MIPS_BASE_ADDRESS 0x0
22 # CHECK-NEXT: 0x7000000A MIPS_LOCAL_GOTNO 4
23 # CHECK-NEXT: 0x70000011 MIPS_SYMTABNO 4
24 # CHECK-NEXT: 0x70000013 MIPS_GOTSYM 0x2
25 # CHECK-NEXT: 0x00000003 PLTGOT 0x1000
26 # CHECK-NEXT: 0x00000000 NULL 0x0
34 Flags: [ EF_MIPS_PIC, EF_MIPS_CPIC,
35 EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ]
39 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
68 Flags: [ SHF_WRITE, SHF_ALLOC ]
73 Flags: [ SHF_WRITE, SHF_ALLOC ]
102 Section: .rodata.str1
105 Section: .rodata.str2