[PATCH] D73828: [yaml2obj] Support -D EI_CLASS=

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 23:55:07 PST 2020


MaskRay created this revision.
MaskRay added reviewers: grimar, jhenderson.
Herald added subscribers: llvm-commits, hiraditya, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
MaskRay added a parent revision: D73821: [yaml2obj] Support enumeration() with context and add -D e_machine= to override the value in YAML.
MaskRay added a child revision: D73829: [yaml2obj] Support -D EI_DATA=.

Usage:

`yaml2obj -D EI_CLASS=ELFCLASS32 a.yaml | file - # ELF 32-bit LSB relocatable`
`yaml2obj -D EI_CLASS=ELFCLASS64 a.yaml | file - # ELF 64-bit LSB relocatable`


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73828

Files:
  llvm/include/llvm/ObjectYAML/ELFYAML.h
  llvm/lib/ObjectYAML/ELFYAML.cpp
  llvm/test/tools/yaml2obj/ELF/class-endianness.yaml
  llvm/test/tools/yaml2obj/ELF/reloc-sec-entry-size.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73828.241865.patch
Type: text/x-patch
Size: 5693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200201/ff031c2b/attachment.bin>


More information about the llvm-commits mailing list