llvm.org GIT mirror llvm / e35d602
[Mips] Support DT_MIPS_RLD_MAP_REL dynamic section tag in the llvm-readobj git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243833 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Atanasyan 5 years ago
4 changed file(s) with 29 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
11381138 DT_MIPS_GP_VALUE = 0x70000030, // GP value for auxiliary GOTs.
11391139 DT_MIPS_AUX_DYNAMIC = 0x70000031, // Address of auxiliary .dynamic.
11401140 DT_MIPS_PLTGOT = 0x70000032, // Address of the base of the PLTGOT.
1141 DT_MIPS_RWPLT = 0x70000034 // Points to the base
1141 DT_MIPS_RWPLT = 0x70000034, // Points to the base
11421142 // of a writable PLT.
1143 DT_MIPS_RLD_MAP_REL = 0x70000035 // Relative offset of run time loader
1144 // map, used for debugging.
11431145 };
11441146
11451147 // DT_FLAGS values.
0 # Check DT_MIPS_RLD_MAP_REL .dynamic section tag reading
1
2 RUN: llvm-readobj -dynamic-table %p/Inputs/mips-rld-map-rel.elf-mipsel | \
3 RUN: FileCheck %s
4
5 CHECK: DynamicSection [ (16 entries)
6 CHECK-NEXT: Tag Type Name/Value
7 CHECK-NEXT: 0x00000004 HASH 0x220
8 CHECK-NEXT: 0x00000005 STRTAB 0x2FC
9 CHECK-NEXT: 0x00000006 SYMTAB 0x25C
10 CHECK-NEXT: 0x0000000A STRSZ 72 (bytes)
11 CHECK-NEXT: 0x0000000B SYMENT 16 (bytes)
12 CHECK-NEXT: 0x70000035 MIPS_RLD_MAP_REL 0x101E0
13 CHECK-NEXT: 0x00000015 DEBUG 0x0
14 CHECK-NEXT: 0x00000003 PLTGOT 0x10390
15 CHECK-NEXT: 0x70000001 MIPS_RLD_VERSION 1
16 CHECK-NEXT: 0x70000005 MIPS_FLAGS NOTPOT
17 CHECK-NEXT: 0x70000006 MIPS_BASE_ADDRESS 0x0
18 CHECK-NEXT: 0x7000000A MIPS_LOCAL_GOTNO 2
19 CHECK-NEXT: 0x70000011 MIPS_SYMTABNO 10
20 CHECK-NEXT: 0x70000012 MIPS_UNREFEXTNO 15
21 CHECK-NEXT: 0x70000013 MIPS_GOTSYM 0xA
22 CHECK-NEXT: 0x00000000 NULL 0x0
23 CHECK-NEXT: ]
10041004 LLVM_READOBJ_TYPE_CASE(RELCOUNT);
10051005 LLVM_READOBJ_TYPE_CASE(GNU_HASH);
10061006 LLVM_READOBJ_TYPE_CASE(MIPS_RLD_VERSION);
1007 LLVM_READOBJ_TYPE_CASE(MIPS_RLD_MAP_REL);
10071008 LLVM_READOBJ_TYPE_CASE(MIPS_FLAGS);
10081009 LLVM_READOBJ_TYPE_CASE(MIPS_BASE_ADDRESS);
10091010 LLVM_READOBJ_TYPE_CASE(MIPS_LOCAL_GOTNO);
11381139 case DT_MIPS_BASE_ADDRESS:
11391140 case DT_MIPS_GOTSYM:
11401141 case DT_MIPS_RLD_MAP:
1142 case DT_MIPS_RLD_MAP_REL:
11411143 case DT_MIPS_PLTGOT:
11421144 case DT_MIPS_OPTIONS:
11431145 OS << format("0x%" PRIX64, Value);