1*9880d681SAndroid Build Coastguard Worker// Check dynamic section tags in case of shared library file. 2*9880d681SAndroid Build Coastguard WorkerRUN: llvm-readobj -dynamic-table %p/Inputs/dynamic-table-so.mips \ 3*9880d681SAndroid Build Coastguard WorkerRUN: | FileCheck %s -check-prefix ELF-MIPS 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard WorkerELF-MIPS: Format: ELF32-mips 6*9880d681SAndroid Build Coastguard WorkerELF-MIPS: Arch: mipsel 7*9880d681SAndroid Build Coastguard WorkerELF-MIPS: AddressSize: 32bit 8*9880d681SAndroid Build Coastguard WorkerELF-MIPS: LoadName: 9*9880d681SAndroid Build Coastguard WorkerELF-MIPS: DynamicSection [ (23 entries) 10*9880d681SAndroid Build Coastguard WorkerELF-MIPS: Tag Type Name/Value 11*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x00000001 NEEDED SharedLibrary (libc.so.6) 12*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x0000000C INIT 0x528 13*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x0000000D FINI 0x860 14*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x00000004 HASH 0x210 15*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x00000005 STRTAB 0x3D8 16*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x00000006 SYMTAB 0x2A8 17*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x0000000A STRSZ 231 (bytes) 18*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x0000000B SYMENT 16 (bytes) 19*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x00000003 PLTGOT 0x108E0 20*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x00000011 REL 0x518 21*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x00000012 RELSZ 16 (bytes) 22*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x00000013 RELENT 8 (bytes) 23*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x70000001 MIPS_RLD_VERSION 1 24*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x70000005 MIPS_FLAGS NOTPOT 25*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x70000006 MIPS_BASE_ADDRESS 0x0 26*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x7000000A MIPS_LOCAL_GOTNO 10 27*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x70000011 MIPS_SYMTABNO 19 28*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x70000012 MIPS_UNREFEXTNO 26 29*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x70000013 MIPS_GOTSYM 0xD 30*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x6FFFFFFE VERNEED 0x4E8 31*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x6FFFFFFF VERNEEDNUM 1 32*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x6FFFFFF0 VERSYM 0x4C0 33*9880d681SAndroid Build Coastguard WorkerELF-MIPS: 0x00000000 NULL 0x0 34*9880d681SAndroid Build Coastguard WorkerELF-MIPS: ] 35*9880d681SAndroid Build Coastguard Worker 36*9880d681SAndroid Build Coastguard Worker// Check dynamic section tags in case of non-pic executable file. 37*9880d681SAndroid Build Coastguard WorkerRUN: llvm-readobj -dynamic-table %p/Inputs/dynamic-table-exe.mips \ 38*9880d681SAndroid Build Coastguard WorkerRUN: | FileCheck %s -check-prefix ELF-MIPS-EXE 39*9880d681SAndroid Build Coastguard Worker 40*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: Format: ELF32-mips 41*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: Arch: mipsel 42*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: AddressSize: 32bit 43*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: LoadName: 44*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: DynamicSection [ (26 entries) 45*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: Tag Type Name/Value 46*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x00000001 NEEDED SharedLibrary (libc.so.6) 47*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x0000000C INIT 0x400418 48*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x0000000D FINI 0x4007B0 49*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x00000004 HASH 0x4002B8 50*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x00000005 STRTAB 0x40036C 51*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x00000006 SYMTAB 0x4002EC 52*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x0000000A STRSZ 107 (bytes) 53*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x0000000B SYMENT 16 (bytes) 54*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x70000016 MIPS_RLD_MAP 0x410880 55*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x00000015 DEBUG 0x0 56*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x00000003 PLTGOT 0x410890 57*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x70000001 MIPS_RLD_VERSION 1 58*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x70000005 MIPS_FLAGS NOTPOT 59*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x70000006 MIPS_BASE_ADDRESS 0x400000 60*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x7000000A MIPS_LOCAL_GOTNO 5 61*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x70000011 MIPS_SYMTABNO 8 62*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x70000012 MIPS_UNREFEXTNO 32 63*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x70000013 MIPS_GOTSYM 0x7 64*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x00000014 PLTREL REL 65*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x00000017 JMPREL 0x400408 66*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x00000002 PLTRELSZ 16 (bytes) 67*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x70000032 MIPS_PLTGOT 0x410854 68*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x6FFFFFFE VERNEED 0x4003E8 69*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x6FFFFFFF VERNEEDNUM 1 70*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x6FFFFFF0 VERSYM 0x4003D8 71*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: 0x00000000 NULL 0x0 72*9880d681SAndroid Build Coastguard WorkerELF-MIPS-EXE: ] 73*9880d681SAndroid Build Coastguard Worker 74*9880d681SAndroid Build Coastguard WorkerRUN: llvm-readobj -dynamic-table %p/Inputs/dynamic-table-exe.x86 \ 75*9880d681SAndroid Build Coastguard WorkerRUN: | FileCheck %s -check-prefix ELF-X86-EXE 76*9880d681SAndroid Build Coastguard Worker 77*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: Format: ELF32-i386 78*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: Arch: i386 79*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: AddressSize: 32bit 80*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: LoadName: 81*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: DynamicSection [ (30 entries) 82*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: Tag Type Name/Value 83*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000001 NEEDED SharedLibrary (libstdc++.so.6) 84*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000001 NEEDED SharedLibrary (libgcc_s.so.1) 85*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000001 NEEDED SharedLibrary (libc.so.6) 86*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x0000000C INIT 0x62C 87*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x0000000D FINI 0x920 88*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000019 INIT_ARRAY 0x19FC 89*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x0000001B INIT_ARRAYSZ 4 (bytes) 90*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x0000001A FINI_ARRAY 0x1A00 91*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x0000001C FINI_ARRAYSZ 4 (bytes) 92*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000004 HASH 0x18C 93*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x6FFFFEF5 GNU_HASH 0x1E4 94*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000005 STRTAB 0x328 95*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000006 SYMTAB 0x218 96*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x0000000A STRSZ 408 (bytes) 97*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x0000000B SYMENT 16 (bytes) 98*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000015 DEBUG 0x0 99*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000003 PLTGOT 0x1B30 100*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000002 PLTRELSZ 64 (bytes) 101*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000014 PLTREL REL 102*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000017 JMPREL 0x5EC 103*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000011 REL 0x564 104*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000012 RELSZ 136 (bytes) 105*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000013 RELENT 8 (bytes) 106*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000016 TEXTREL 107*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x0000001E FLAGS TEXTREL 108*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x6FFFFFFE VERNEED 0x4E4 109*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x6FFFFFFF VERNEEDNUM 3 110*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x6FFFFFF0 VERSYM 0x4C0 111*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x6FFFFFFA RELCOUNT 6 112*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: 0x00000000 NULL 0x0 113*9880d681SAndroid Build Coastguard WorkerELF-X86-EXE: ] 114*9880d681SAndroid Build Coastguard Worker 115*9880d681SAndroid Build Coastguard WorkerRUN: llvm-readobj -dynamic-table %p/Inputs/dynamic-table-so.aarch64 \ 116*9880d681SAndroid Build Coastguard WorkerRUN: | FileCheck %s -check-prefix ELF-AARCH64-SO 117*9880d681SAndroid Build Coastguard Worker 118*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: Format: ELF64-aarch64-little 119*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: Arch: aarch64 120*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: AddressSize: 64bit 121*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: LoadName: 122*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: DynamicSection [ (26 entries) 123*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: Tag Type Name/Value 124*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x0000000000000001 NEEDED SharedLibrary (libc.so.6) 125*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000000000000C INIT 0x660 126*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000000000000D FINI 0x83C 127*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x0000000000000019 INIT_ARRAY 0x10DB8 128*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000000000001B INIT_ARRAYSZ 8 (bytes) 129*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000000000001A FINI_ARRAY 0x10DC0 130*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000000000001C FINI_ARRAYSZ 8 (bytes) 131*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000006FFFFEF5 GNU_HASH 0x1F0 132*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x0000000000000005 STRTAB 0x420 133*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x0000000000000006 SYMTAB 0x240 134*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000000000000A STRSZ 210 (bytes) 135*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000000000000B SYMENT 24 (bytes) 136*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x0000000000000003 PLTGOT 0x10FE8 137*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x0000000000000002 PLTRELSZ 96 (bytes) 138*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x0000000000000014 PLTREL RELA 139*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x0000000000000017 JMPREL 0x600 140*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000006FFFFEF6 TLSDESC_PLT 0x6D0 141*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000006FFFFEF7 TLSDESC_GOT 0x10FE0 142*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x0000000000000007 RELA 0x540 143*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x0000000000000008 RELASZ 192 (bytes) 144*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x0000000000000009 RELAENT 24 (bytes) 145*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000006FFFFFFE VERNEED 0x520 146*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000006FFFFFFF VERNEEDNUM 1 147*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000006FFFFFF0 VERSYM 0x4F2 148*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x000000006FFFFFF9 RELACOUNT 3 149*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: 0x0000000000000000 NULL 0x0 150*9880d681SAndroid Build Coastguard WorkerELF-AARCH64-SO: ] 151