[PATCH] D16269: [llvm-readobj][ELF] Teach llvm-readobj to show arch specific ELF section's flags

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 17 03:11:09 PST 2016


atanasyan created this revision.
atanasyan added a reviewer: davide.
atanasyan added a subscriber: llvm-commits.
atanasyan set the repository for this revision to rL LLVM.

Some architecture specific ELF section flags might have the same value (for example SHF_X86_64_LARGE and SHF_HEX_GPREL) and we have to check machine architectures to select an appropriate set of possible flags.

The patch selects architecture specific flags into separate arrays `ElfxxxSectionFlags` and combines `ElfSectionFlags` and `ElfxxxSectionFlags` before pass to the `StreamWriter::printFlags()` method.

Repository:
  rL LLVM

http://reviews.llvm.org/D16269

Files:
  lib/Object/ELFYAML.cpp
  test/Object/obj2yaml.test
  test/tools/llvm-readobj/elf-sec-flags.test
  tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16269.45097.patch
Type: text/x-patch
Size: 6876 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160117/ef704670/attachment.bin>


More information about the llvm-commits mailing list