summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-readobj/ELF/section-flags-os-proc.test
Commit message (Collapse)AuthorAgeFilesLines
* [llvm-readobj][test] - Move a comment. NFC.Georgii Rymar2019-12-181-2/+2
| | | | I've forgot to address this review comment.
* [llvm-readelf][llvm-readobj] - Reimplement the logic of section flags dumping.Georgii Rymar2019-12-181-0/+132
Our logic that dumped the flags was buggy. For LLVM style it dumped SHF_MASKPROC/SHF_MASKOS named constants, though they are not flags, but masks. For GNU style it was just very inconsistent with GNU which has logic that is not straightforward. Imagine we have sh_flags == 0x90000000. SHF_EXCLUDE ("E") has a value of 0x80000000 and SHF_MASKPROC is 0xf0000000. GNU readelf will not print "E" or "Ep" in this case, but will print just "p". It only will print "E" when no other processor flag is set. I had to investigate the GNU source to find the algorithm and now our logic should match it. Differential revision: https://reviews.llvm.org/D71462
OpenPOWER on IntegriCloud