[llvm] c44a9b5 - [llvm-readobj] - Simplify elf-hash-symbols.test. NFCI.
Georgii Rymar via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 6 23:38:59 PST 2019
Author: Georgii Rymar
Date: 2019-11-07T10:32:37+03:00
New Revision: c44a9b538d8cd468dd978c0d1fe447d2df69566a
URL: https://github.com/llvm/llvm-project/commit/c44a9b538d8cd468dd978c0d1fe447d2df69566a
DIFF: https://github.com/llvm/llvm-project/commit/c44a9b538d8cd468dd978c0d1fe447d2df69566a.diff
LOG: [llvm-readobj] - Simplify elf-hash-symbols.test. NFCI.
It converts binary contents of .hash and .gnu.hash that were generated by a linker
to YAML descriptions.
I've also dropped Shift2 and BloomFilter values because they are not needed here.
Differential revision: https://reviews.llvm.org/D69881
Added:
Modified:
llvm/test/tools/llvm-readobj/elf-hash-symbols.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-readobj/elf-hash-symbols.test b/llvm/test/tools/llvm-readobj/elf-hash-symbols.test
index 4ffecf9fcc6d..e4515b692eb5 100644
--- a/llvm/test/tools/llvm-readobj/elf-hash-symbols.test
+++ b/llvm/test/tools/llvm-readobj/elf-hash-symbols.test
@@ -29,17 +29,22 @@ FileHeader:
Type: ET_DYN
Machine: EM_386
Sections:
-## The contents of .hash and .gnu.hash were generated by a linker.
- Name: .hash
Type: SHT_HASH
Flags: [ SHF_ALLOC ]
Link: .dynsym
- Content: '0300000006000000010000000000000000000000000000000500000004000000020000000000000003000000'
+ Bucket: [ 1, 0, 0 ]
+ Chain: [ 0, 5, 4, 2, 0, 3 ]
- Name: .gnu.hash
Type: SHT_GNU_HASH
Flags: [ SHF_ALLOC ]
Link: .dynsym
- Content: 0300000002000000010000000500000048991200000000000200000004000000685C880B9169880BF46D880BCB60880B
+ Header:
+ SymNdx: 0x2
+ Shift2: 0x0
+ BloomFilter: [ 0x0 ]
+ HashBuckets: [ 0x0, 0x2, 0x4 ]
+ HashValues: [ 0x0B885C68, 0x0B886991, 0x0B886DF4, 0x0B8860CB ]
- Name: .dynamic
Type: SHT_DYNAMIC
Flags: [ SHF_ALLOC ]
@@ -109,17 +114,22 @@ FileHeader:
Type: ET_DYN
Machine: EM_X86_64
Sections:
-## The contents of .hash and .gnu.hash were generated by a linker.
- Name: .hash
Type: SHT_HASH
Flags: [ SHF_ALLOC ]
Link: .dynsym
- Content: '0300000006000000010000000000000000000000000000000500000004000000020000000000000003000000'
+ Bucket: [ 1, 0, 0 ]
+ Chain: [ 0, 5, 4, 2, 0, 3 ]
- Name: .gnu.hash
Type: SHT_GNU_HASH
Flags: [ SHF_ALLOC ]
Link: .dynsym
- Content: 030000000200000001000000060000000808020040019200000000000200000004000000685C880B9169880BF46D880BCB60880B
+ Header:
+ SymNdx: 0x2
+ Shift2: 0x0
+ BloomFilter: [ 0x0 ]
+ HashBuckets: [ 0x00000000, 0x00000002, 0x00000004 ]
+ HashValues: [ 0x0B885C68, 0x0B886991, 0x0B886DF4, 0x0B8860CB ]
- Name: .dynamic
Type: SHT_DYNAMIC
Flags: [ SHF_ALLOC ]
@@ -185,12 +195,12 @@ FileHeader:
Type: ET_DYN
Machine: EM_386
Sections:
-## The contents of .hash was generated by a linker.
- Name: .hash
Type: SHT_HASH
Flags: [ SHF_ALLOC ]
Link: .dynsym
- Content: '0300000006000000010000000000000000000000000000000500000004000000020000000000000003000000'
+ Bucket: [ 1, 0, 0 ]
+ Chain: [ 0, 5, 4, 2, 0, 3 ]
- Name: .dynamic
Type: SHT_DYNAMIC
Flags: [ SHF_ALLOC ]
@@ -246,12 +256,16 @@ FileHeader:
Type: ET_DYN
Machine: EM_386
Sections:
-## The contents of .gnu.hash was generated by a linker.
- Name: .gnu.hash
Type: SHT_GNU_HASH
Flags: [ SHF_ALLOC ]
Link: .dynsym
- Content: 0300000002000000010000000500000048991200000000000200000004000000685C880B9169880BF46D880BCB60880B
+ Header:
+ SymNdx: 0x2
+ Shift2: 0x0
+ BloomFilter: [ 0x0 ]
+ HashBuckets: [ 0x0, 0x2, 0x4 ]
+ HashValues: [ 0x0B885C68, 0x0B886991, 0x0B886DF4, 0x0B8860CB ]
- Name: .dynamic
Type: SHT_DYNAMIC
Flags: [ SHF_ALLOC ]
More information about the llvm-commits
mailing list