[llvm-elfabi] Emit ELF header and string table sections
authorHaowei Wu <haowei@google.com>
Tue, 29 Sep 2020 05:10:54 +0000 (22:10 -0700)
committerHaowei Wu <haowei@google.com>
Mon, 23 Nov 2020 19:31:57 +0000 (11:31 -0800)
commit53c5fdd59a5cf7fbb4dcb7a7e84c9c4a40d32a84
tree5fd8e2bed21b3627fe1a4027bba0263ebf78dff0
parent454f32e4d572a85693d99bbb61513c63a84a1388
[llvm-elfabi] Emit ELF header and string table sections

This change serves to create the initial framework for outputting ELF
files from llvm-elfabi.

Differential Revision: https://reviews.llvm.org/D61767
llvm/include/llvm/InterfaceStub/ELFObjHandler.h
llvm/lib/InterfaceStub/ELFObjHandler.cpp
llvm/test/tools/llvm-elfabi/fail-file-write-windows.test [new file with mode: 0644]
llvm/test/tools/llvm-elfabi/fail-file-write.test [new file with mode: 0644]
llvm/test/tools/llvm-elfabi/output-target-error.test [new file with mode: 0644]
llvm/test/tools/llvm-elfabi/write-stub.test [new file with mode: 0644]
llvm/tools/llvm-elfabi/llvm-elfabi.cpp