llvm.org GIT mirror llvm / 23d47d3
[Mips] Support DT_MIPS_OPTIONS dynamic section tag in the llvm-readobj git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235285 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Atanasyan 5 years ago
3 changed file(s) with 24 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 # Check DT_MIPS_OPTIONS .dynamic section tag reading
1
2 RUN: llvm-readobj -dynamic-table %p/Inputs/mips-options.elf-mips64el | \
3 RUN: FileCheck %s
4
5 CHECK: DynamicSection [ (14 entries)
6 CHECK-NEXT: Tag Type Name/Value
7 CHECK-NEXT: 0x0000000000000004 HASH 0x158
8 CHECK-NEXT: 0x0000000000000005 STRTAB 0x1C0
9 CHECK-NEXT: 0x0000000000000006 SYMTAB 0x178
10 CHECK-NEXT: 0x000000000000000A STRSZ 7 (bytes)
11 CHECK-NEXT: 0x000000000000000B SYMENT 24 (bytes)
12 CHECK-NEXT: 0x0000000070000001 MIPS_RLD_VERSION 1
13 CHECK-NEXT: 0x0000000070000005 MIPS_FLAGS NOTPOT
14 CHECK-NEXT: 0x0000000070000006 MIPS_BASE_ADDRESS 0x0
15 CHECK-NEXT: 0x000000007000000A MIPS_LOCAL_GOTNO 2
16 CHECK-NEXT: 0x0000000070000011 MIPS_SYMTABNO 3
17 CHECK-NEXT: 0x0000000070000013 MIPS_GOTSYM 0x3
18 CHECK-NEXT: 0x0000000000000003 PLTGOT 0x2000
19 CHECK-NEXT: 0x0000000070000029 MIPS_OPTIONS 0x1000
20 CHECK-NEXT: 0x0000000000000000 NULL 0x0
21 CHECK-NEXT: ]
781781 LLVM_READOBJ_TYPE_CASE(MIPS_GOTSYM);
782782 LLVM_READOBJ_TYPE_CASE(MIPS_RLD_MAP);
783783 LLVM_READOBJ_TYPE_CASE(MIPS_PLTGOT);
784 LLVM_READOBJ_TYPE_CASE(MIPS_OPTIONS);
784785 default: return "unknown";
785786 }
786787 }
872873 case DT_MIPS_GOTSYM:
873874 case DT_MIPS_RLD_MAP:
874875 case DT_MIPS_PLTGOT:
876 case DT_MIPS_OPTIONS:
875877 OS << format("0x%" PRIX64, Value);
876878 break;
877879 case DT_RELCOUNT: