[all-commits] [llvm/llvm-project] 422b07: [llvm-readobj] - Fix letters used for dumping sect...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Fri Dec 13 00:42:25 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 422b078c69ee7ae5c2529992eed4fd8a21aedda4
      https://github.com/llvm/llvm-project/commit/422b078c69ee7ae5c2529992eed4fd8a21aedda4
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2019-12-13 (Fri, 13 Dec 2019)

  Changed paths:
    M llvm/test/MC/ELF/exclude-debug-dwo.s
    M llvm/test/tools/llvm-readobj/ELF/section-flags.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] - Fix letters used for dumping section types in GNU style.

I've noticed that when we have all regular flags set, we print "WAEXMSILoGTx"
instead of "WAXMSILOGTCE" printed by GNU readelf.

It happens because:
1) We print SHF_EXCLUDE at the wrong place.
2) We do not recognize SHF_COMPRESSED, we print "x" instead of "C".
3) We print "o" instead of "O" for SHF_OS_NONCONFORMING.

This patch fixes differences and adds test cases.

Differential revision: https://reviews.llvm.org/D71418




More information about the All-commits mailing list