Skip to content

Commit

Permalink
Avoid rdi that is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoguim committed Feb 19, 2023
1 parent b890456 commit 764798c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patchelf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ void ElfFile<ElfFileParamNames>::rebuildGnuHashTable(const char* strTab, span<El
{
Entry e;
e.hash = gnuHash(strTab + rdi(sym.st_name));
e.bucketIdx = e.hash % rdi(ght.m_hdr.numBuckets);
e.bucketIdx = e.hash % ght.m_buckets.size();
e.originalPos = pos++;
entries.push_back(e);
}
Expand Down

0 comments on commit 764798c

Please sign in to comment.