/external/llvm-project/llvm/test/tools/llvm-readobj/ELF/ |
D | dyn-symbols-size-from-hash-table.test | 23 ## the nchain value is correct for all formats, and other tests show the basic 156 # WARN: warning: '{{.*}}2-{{.*}}': hash table nchain ([[NCHAIN]]) differs from symbol count derived… 217 # GNU2: Symbol table '.dynsym' contains [[NCHAIN]] entries: 330 # RUN: FileCheck %s -DFILE=%t4.1 --input-file=%t4.out.gnu.txt --check-prefix=BROKEN-NCHAIN-GNU 332 # BROKEN-NCHAIN-GNU: [[#%u, FILESIZE:]] 333 # BROKEN-NCHAIN-GNU: warning: '[[FILE]]': the size (0x17ffffffe8) of the dynamic symbol table at 0x… 335 # BROKEN-NCHAIN-GNU: [Nr] Name Type Address Off 336 # BROKEN-NCHAIN-GNU: [ 1] .rela.plt RELA 0000000000001000 0000[[#%x, RELAOFF:]] 337 # BROKEN-NCHAIN-GNU: [ 4] .dynsym DYNSYM 0000000000001078 0000[[#%x, DYNSYMOFF]] 339 # BROKEN-NCHAIN-GNU: 'PLT' relocation section at offset 0x[[#%x, RELAOFF]] contains 24 bytes: [all …]
|
D | hash-table.test | 146 ## Each SHT_HASH section starts with two 32-bit fields: nbucket and nchain. 213 … the hash table at offset 0x54 goes past the end of the file (0x1d4), nbucket = 94, nchain = 1{{$}} 216 ## Case B.1: the hash table ends right before the EOF. We have a broken nchain 224 # NOERR2: warning: '[[FILE]]': hash table nchain (93) differs from symbol count derived from S… 230 ## Here we would dump the rest of the file as chain array because we have a broken nchain field. 235 ## Case B.2: the hash table ends 1 byte past the EOF. We have a broken nchain 243 # ERR3: warning: '[[FILE]]': hash table nchain (94) differs from symbol count derived from SHT… 248 … the hash table at offset 0x54 goes past the end of the file (0x1d4), nbucket = 1, nchain = 94{{$}} 263 NChain: [[NCHAIN]] 284 # SINGLE-WARN: warning: '[[FILE]]': hash table nchain (0) differs from symbol count derived fr…
|
D | hash-histogram.test | 112 ## Each SHT_HASH section starts with two 32-bit fields: nbucket and nchain. 159 … the hash table at offset 0x54 goes past the end of the file (0x1d4), nbucket = 94, nchain = 1{{$}} 161 ## Case B.1: the hash table ends right before the EOF. We have a broken nchain 166 # ERR3: warning: '[[FILE]]': hash table nchain (93) differs from symbol count derived from SHT_DYNS… 169 ## Case B.2: the hash table ends 1 byte past the EOF. We have a broken nchain 174 # ERR4: warning: '[[FILE]]': hash table nchain (94) differs from symbol count derived from SHT_DYNS… 176 … the hash table at offset 0x54 goes past the end of the file (0x1d4), nbucket = 1, nchain = 94{{$}} 190 NChain: [[NCHAIN]] 218 …e hash table at offset 0x78 goes past the end of the file (0x358), nbucket = 4294967295, nchain = 2
|
D | hash-symbols.test | 367 ## Each SHT_HASH section starts with two 32-bit fields: nbucket and nchain. 416 … the hash table at offset 0x54 goes past the end of the file (0x1d4), nbucket = 94, nchain = 1{{$}} 419 ## Case B.1: the hash table ends right before the EOF. We have a broken nchain 424 # NOERR2: warning: '[[FILE]]': hash table nchain (93) differs from symbol count derived from S… 430 ## Case B.2: the hash table ends 1 byte past the EOF. We have a broken nchain 435 … the hash table at offset 0x54 goes past the end of the file (0x1d4), nbucket = 1, nchain = 94{{$}} 450 NChain: [[NCHAIN=1]]
|
/external/llvm-project/llvm/test/tools/obj2yaml/ELF/ |
D | hash-section.yaml | 5 ## I.e. data size == 4 * (2 + nbucket + nchain). 25 ## Case 1: A non-empty hash table: nbucket == 1, nchain == 2. 29 ## Case 2: An empty hash table: nbucket == 0, nchain == 0. 67 ## Case 3: nbucket == 1, nchain == 2. 68 ## Section size is less than (2 * nbucket + nchain) * 4. 72 ## Case 4: nbucket == 1, nchain == 2. 73 ## Section size is greater than (2 * nbucket + nchain) * 4.
|
/external/elfutils/src/ |
D | elfcmp.c | 844 const size_t nchain = hash1[1]; \ in hash_content_equivalent() 845 if (data1->d_size != (2 + nbucket + nchain) * sizeof hash1[0] \ in hash_content_equivalent() 846 || hash2[0] != nbucket || hash2[1] != nchain) \ in hash_content_equivalent() 854 bool chain_ok[nchain]; \ in hash_content_equivalent() 855 Hash_Word temp1[nchain - 1]; \ in hash_content_equivalent() 856 Hash_Word temp2[nchain - 1]; \ in hash_content_equivalent() 860 if (bucket1[i] >= nchain || bucket2[i] >= nchain) \ in hash_content_equivalent() 865 if (p >= nchain || b1 >= nchain - 1) \ in hash_content_equivalent() 872 if (p >= nchain || b2 >= nchain - 1) \ in hash_content_equivalent() 890 for (size_t i = 0; i < nchain; ++i) \ in hash_content_equivalent()
|
D | elflint.c | 2028 Elf32_Word nchain = ((Elf32_Word *) data->d_buf)[1]; in check_sysv_hash() local 2030 if (shdr->sh_size < (2ULL + nbucket + nchain) * sizeof (Elf32_Word)) in check_sysv_hash() 2035 (long int) ((2 + nbucket + nchain) * sizeof (Elf32_Word))); in check_sysv_hash() 2039 size_t maxidx = nchain; in check_sysv_hash() 2045 if (nchain > symshdr->sh_size / symshdr->sh_entsize) in check_sysv_hash() 2065 for (; cnt < 2 + nbucket + nchain; ++cnt) in check_sysv_hash() 2082 Elf64_Xword nchain = ((Elf64_Xword *) data->d_buf)[1]; in check_sysv_hash64() local 2087 || maxwords - 2 - nbucket < nchain) in check_sysv_hash64() 2092 (long int) ((2 + nbucket + nchain) * sizeof (Elf64_Xword))); in check_sysv_hash64() 2096 size_t maxidx = nchain; in check_sysv_hash64() [all …]
|
D | strip.c | 2281 Elf32_Word nchain = bucket[1]; in handle_elf() local 2283 uint64_t used_buf = ((2ULL + nchain + nbucket) in handle_elf() 2287 /* Adjust the nchain value. The symbol table size in handle_elf() 2323 while (chain[hidx] != 0 && chain[hidx] < nchain) in handle_elf() 2342 Elf64_Xword nchain = bucket[1]; in handle_elf() local 2346 && maxwords - 2 - nbucket >= nchain); in handle_elf() 2348 /* Adjust the nchain value. The symbol table size in handle_elf() 2384 while (chain[hidx] != 0 && chain[hidx] < nchain) in handle_elf()
|
D | unstrip.c | 512 const size_t nchain = old_hash[1]; \ in adjust_relocs() 515 if (onent != 2 + nbucket + nchain) \ in adjust_relocs() 529 for (size_t i = 1; i < nchain; ++i) \ in adjust_relocs()
|
D | readelf.c | 3252 Elf32_Word nchain = ((Elf32_Word *) data->d_buf)[1]; in handle_sysv_hash() local 3254 uint64_t used_buf = (2ULL + nchain + nbucket) * sizeof (Elf32_Word); in handle_sysv_hash() 3269 while (inner > 0 && inner < nchain) in handle_sysv_hash() 3273 if (chain_len > nchain) in handle_sysv_hash() 3316 Elf64_Xword nchain = ((Elf64_Xword *) data->d_buf)[1]; in handle_sysv_hash64() local 3321 || maxwords - 2 - nbucket < nchain) in handle_sysv_hash64() 3335 while (inner > 0 && inner < nchain) in handle_sysv_hash64() 3339 if (chain_len > nchain) in handle_sysv_hash64()
|
D | ChangeLog | 1041 * readelf.c (handle_sysv_hash): Break bucket chain after nchain
|
/external/llvm-project/llvm/test/tools/yaml2obj/ELF/ |
D | hash-section.yaml | 279 ## Check we can override "nbucket" and "nchain" values of a SHT_HASH section using "NBucket" 280 ## and "NChain" tags. Check that the section size is unaffected when we do this. 312 NChain: 0xBB
|
/external/linux-kselftest/tools/testing/selftests/vDSO/ |
D | parse_vdso.c | 73 ELF(Word) nbucket, nchain; 179 vdso_info.nchain = hash[1]; in vdso_init_from_sysinfo_ehdr()
|
/external/llvm/include/llvm/Object/ |
D | ELFTypes.h | 527 Elf_Word nchain; 535 &nbucket + 2 + nbucket + nchain);
|
/external/llvm-project/llvm/tools/llvm-readobj/ |
D | ELFDumper.cpp | 2228 // equal nchain". Check to see if the DT_HASH hash table nchain value in parseDynamicTable() 2234 else if (HashTable->nchain != DynSymRegion->Size / DynSymRegion->EntSize) in parseDynamicTable() 2236 "hash table nchain (" + Twine(HashTable->nchain) + in parseDynamicTable() 2261 (uint64_t)HashTable->nchain * DynSymRegion->EntSize; in parseDynamicTable() 2270 DynSymRegion->Size = HashTable->nchain * DynSymRegion->EntSize; in parseDynamicTable() 2719 // Each SHT_HASH section starts from two 32-bit fields: nbucket and nchain. in checkHashTable() 2729 ((uint64_t)H->nbucket + H->nchain) * sizeof(typename ELFT::Word)) in checkHashTable() 2731 ", nchain = " + Twine(H->nchain)); in checkHashTable() 2765 W.printNumber("Num Chains", HashTable->nchain); in printHashTable() 4121 std::vector<bool> Visited(SysVHash.nchain); in printHashTableSymbols() [all …]
|
/external/llvm-project/llvm/lib/ObjectYAML/ |
D | ELFYAML.cpp | 1176 // obj2yaml does not dump these fields. They can be used to override nchain in sectionMapping() 1179 (!Section.NBucket.hasValue() && !Section.NChain.hasValue())); in sectionMapping() 1180 IO.mapOptional("NChain", Section.NChain); in sectionMapping()
|
D | ELFEmitter.cpp | 1465 Section.NChain.getValueOr(llvm::yaml::Hex64(Section.Chain->size())), in writeSectionContent()
|
/external/llvm-project/llvm/include/llvm/Object/ |
D | ELFTypes.h | 510 Elf_Word nchain; 518 &nbucket + 2 + nbucket + nchain);
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
D | ELFTypes.h | 512 Elf_Word nchain; 520 &nbucket + 2 + nbucket + nchain);
|
/external/llvm-project/llvm/tools/obj2yaml/ |
D | elf2yaml.cpp | 1234 uint32_t NChain = Data.getU32(Cur); in dumpHashSection() local 1235 if (Content.size() != (2 + NBucket + NChain) * 4) { in dumpHashSection() 1246 S->Chain.emplace(NChain); in dumpHashSection()
|
/external/llvm/tools/llvm-readobj/ |
D | ELFDumper.cpp | 1814 W.printNumber("Num Chains", HashTable->nchain); in printHashTable() 3071 size_t NChain = HashTable->nchain; in printHashHistogram() local 3079 if (NChain == 0 || NBucket == 0) in printHashHistogram() 3086 for (size_t C = Buckets[B]; C > 0 && C < NChain; C = Chains[C]) in printHashHistogram()
|
/external/llvm-project/openmp/libomptarget/plugins/amdgpu/src/ |
D | rtl.cpp | 832 // nchain in elf_lookup() 834 // chain[nchain] in elf_lookup()
|
/external/llvm-project/llvm/lib/InterfaceStub/ |
D | ELFObjHandler.cpp | 493 return Table->nchain; in getNumSyms()
|
/external/llvm-project/llvm/include/llvm/ObjectYAML/ |
D | ELFYAML.h | 336 Optional<llvm::yaml::Hex64> NChain; member
|
/external/llvm-project/lld/ELF/ |
D | SyntheticSections.cpp | 2461 unsigned numEntries = 2; // nbucket and nchain. in finalizeContents() 2479 write32(p++, numSymbols); // nchain in writeTo()
|