[PATCH] D87829: [obj2yaml] - Don't emit EM_NONE.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 05:46:12 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added a subscriber: emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
grimar requested review of this revision.

When ELF header's `e_machine == 0`, we emit:

  Machine: EM_NONE

We can avoid doing this, because yaml2obj sets the
`e_machine` field to `EM_NONE` by default.


https://reviews.llvm.org/D87829

Files:
  llvm/test/tools/obj2yaml/ELF/call-graph-profile-section.yaml
  llvm/test/tools/obj2yaml/ELF/duplicate-symbol-and-section-names.yaml
  llvm/test/tools/obj2yaml/ELF/emachine.yaml
  llvm/test/tools/obj2yaml/ELF/gnu-unique-symbols.yaml
  llvm/test/tools/obj2yaml/ELF/implicit-sections-order.yaml
  llvm/test/tools/obj2yaml/ELF/invalid-section-name.yaml
  llvm/test/tools/obj2yaml/ELF/no-symtab.yaml
  llvm/test/tools/obj2yaml/ELF/null-section.yaml
  llvm/test/tools/obj2yaml/ELF/sht-symtab-shndx.yaml
  llvm/test/tools/obj2yaml/ELF/stack-sizes.yaml
  llvm/test/tools/obj2yaml/ELF/symbol-visibility.yaml
  llvm/test/tools/obj2yaml/ELF/versym-section.yaml
  llvm/tools/obj2yaml/elf2yaml.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87829.292473.patch
Type: text/x-patch
Size: 13743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200917/3191cd77/attachment.bin>


More information about the llvm-commits mailing list