1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/tools/llvm-readobj/mips-options.test
Fangrui Song b2d3b0af04 [llvm-readobj] Change -long-option to --long-option in tests. NFC
We use both -long-option and --long-option in tests. Switch to --long-option for consistency.

In the "llvm-readelf" mode, -long-option is discouraged as it conflicts with grouped short options and it is not accepted by GNU readelf.

While updating the tests, change llvm-readobj -s to llvm-readobj -S to reduce confusion ("s" is --section-headers in llvm-readobj but --symbols in llvm-readelf).

llvm-svn: 359649
2019-05-01 05:27:20 +00:00

23 lines
1.1 KiB
Plaintext

# Check DT_MIPS_OPTIONS .dynamic section tag reading
RUN: llvm-readobj --dynamic-table %p/Inputs/mips-options.elf-mips64el | \
RUN: FileCheck %s
CHECK: DynamicSection [ (14 entries)
CHECK-NEXT: Tag Type Name/Value
CHECK-NEXT: 0x0000000000000004 HASH 0x158
CHECK-NEXT: 0x0000000000000005 STRTAB 0x1C0
CHECK-NEXT: 0x0000000000000006 SYMTAB 0x178
CHECK-NEXT: 0x000000000000000A STRSZ 7 (bytes)
CHECK-NEXT: 0x000000000000000B SYMENT 24 (bytes)
CHECK-NEXT: 0x0000000070000001 MIPS_RLD_VERSION 1
CHECK-NEXT: 0x0000000070000005 MIPS_FLAGS NOTPOT
CHECK-NEXT: 0x0000000070000006 MIPS_BASE_ADDRESS 0x0
CHECK-NEXT: 0x000000007000000A MIPS_LOCAL_GOTNO 2
CHECK-NEXT: 0x0000000070000011 MIPS_SYMTABNO 3
CHECK-NEXT: 0x0000000070000013 MIPS_GOTSYM 0x3
CHECK-NEXT: 0x0000000000000003 PLTGOT 0x2000
CHECK-NEXT: 0x0000000070000029 MIPS_OPTIONS 0x1000
CHECK-NEXT: 0x0000000000000000 NULL 0x0
CHECK-NEXT: ]