summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/gnu-hash-table-rwsegment.s
Commit message (Collapse)AuthorAgeFilesLines
* [test] Change llvm-readobj -long-option to --long-option or well-known short ↵Fangrui Song2019-05-011-1/+1
| | | | | | | | | | | | options. NFC Also change some options that have different semantics (cause confusion) in llvm-readelf mode: -s => -S -t => --symbols -sd => --section-data llvm-svn: 359651
* [ELF] .gnu.hash bloom filter: use Shift2 = 26 instead of 6Fangrui Song2018-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | | Summary: For the 2-bit bloom filter, we currently pick the bits Hash%64 and Hash>>6%64 (Shift2=6), but bits [6:...] are also used to select a word, causing a loss of precision. In this patch, we choose Shift2=26, with is suggested by Ambrose Feinstein. Note, Shift2 is computed as maskbitslog2 in bfd/elflink.c and gold/dynobj.cc It is varying with the number of dynamic symbols but we don't necessarily copy its rule. Reviewers: ruiu, espindola Reviewed By: ruiu Subscribers: emaste, arichardson, llvm-commits Differential Revision: https://reviews.llvm.org/D55971 llvm-svn: 349966
* Fix broken .gnu.hash section if -no-rosegment is given.Rui Ueyama2017-12-061-0/+20
We fill executable sections with trap instructions (0xcc or equivalent). If a .gnu.hash section was put into an executable segment, we created corrupted .gnu.hash section. This patch fixes the issue. llvm-svn: 319863
OpenPOWER on IntegriCloud