[PATCH] D30169: Print unknown section header flags has hex in assembly output

Christof Douma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 20 07:37:54 PST 2017


christof created this revision.

Use hexadecimal notation for section header flags in case we have a section header with flag without a textual/symbolic representation. The hex syntax is introduced in GNU as version 2.27 [1] and was added to llvm in r289785 [2]. A previous change to do was rejected [3] and this change takes the comments there into account.

I've refactored the section header flags printing to detect if there are any flags we have no symbolic section flag for. In such case, print the section header flags as hex instead.

[1] https://sourceware.org/binutils/docs-2.27/as/Section.html
[2] https://reviews.llvm.org/rL289785
[3] https://reviews.llvm.org/D27986


Repository:
  rL LLVM

https://reviews.llvm.org/D30169

Files:
  lib/MC/MCSectionELF.cpp
  test/CodeGen/Mips/2008-07-15-SmallSection.ll
  test/CodeGen/Mips/mips-shf-gprel.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30169.89119.patch
Type: text/x-patch
Size: 4734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170220/a19c96aa/attachment.bin>


More information about the llvm-commits mailing list