[PATCH] D55839: [elfabi] Add support for writing ELF header for binary stubs

Armando Montanez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 18 10:28:39 PST 2018


amontanez created this revision.
amontanez added reviewers: jakehehrlich, phosek, mcgrathr, jhenderson.
Herald added a subscriber: llvm-commits.

This change introduces the beginnings of ELF binary stub write support for elfabi. Specifying an output file path as well as `--output-target=<target>` will write a binary ELF stub to the specified output file path. For this patch, only the ELF file header is written to the file.


Repository:
  rL LLVM

https://reviews.llvm.org/D55839

Files:
  llvm/test/tools/llvm-elfabi/invalid-bin-target.test
  llvm/test/tools/llvm-elfabi/missing-bin-target.test
  llvm/test/tools/llvm-elfabi/write-elf32be-ehdr.test
  llvm/test/tools/llvm-elfabi/write-elf32le-ehdr.test
  llvm/test/tools/llvm-elfabi/write-elf64be-ehdr.test
  llvm/test/tools/llvm-elfabi/write-elf64le-ehdr.test
  llvm/tools/llvm-elfabi/ELFObjHandler.cpp
  llvm/tools/llvm-elfabi/ELFObjHandler.h
  llvm/tools/llvm-elfabi/llvm-elfabi.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55839.178721.patch
Type: text/x-patch
Size: 14654 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181218/c1a521cc/attachment.bin>


More information about the llvm-commits mailing list