[PATCH] D53051: [llvm-tapi] initial commit, supports reading ELF

Armando Montanez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 25 10:44:42 PDT 2018


amontanez updated this revision to Diff 171140.
amontanez added a comment.

A few changes to how architecture information is stored. This should make reading and writing binary ELF files easier.

Fixed:

- Fixed bug where converting an ELF stub file to an ELF binary would result in an error.
- Fixed TBE YAML so that .tbe files with no specified symbols load correctly.

Changed:

- ELFArch now conforms directly to the architectures in the ELF namespace. This replaces Triple::ArchType.
- ELF_DSO file type has been replaced with ELF_[32/64][LE/BE].


Repository:
  rL LLVM

https://reviews.llvm.org/D53051

Files:
  llvm/include/llvm/TAPI/ELFObjHandler.h
  llvm/include/llvm/TAPI/ELFStubFile.h
  llvm/include/llvm/TAPI/ELFTextStubHandler.h
  llvm/include/llvm/TAPI/File.h
  llvm/include/llvm/TAPI/FileHandler.h
  llvm/include/llvm/TAPI/Registry.h
  llvm/lib/CMakeLists.txt
  llvm/lib/LLVMBuild.txt
  llvm/lib/TAPI/CMakeLists.txt
  llvm/lib/TAPI/ELFObjHandler.cpp
  llvm/lib/TAPI/ELFTextStubHandler.cpp
  llvm/lib/TAPI/LLVMBuild.txt
  llvm/lib/TAPI/Registry.cpp
  llvm/test/CMakeLists.txt
  llvm/test/tools/llvm-tapi/basic-elf-read.test
  llvm/test/tools/llvm-tapi/basic-tbe-read.test
  llvm/test/tools/llvm-tapi/read-soname.test
  llvm/tools/LLVMBuild.txt
  llvm/tools/llvm-tapi/CMakeLists.txt
  llvm/tools/llvm-tapi/LLVMBuild.txt
  llvm/tools/llvm-tapi/llvm-tapi.cpp
  llvm/unittests/CMakeLists.txt
  llvm/unittests/TAPI/CMakeLists.txt
  llvm/unittests/TAPI/ELFTest.cpp
  llvm/unittests/TAPI/YAMLTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53051.171140.patch
Type: text/x-patch
Size: 47046 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181025/2e3f5652/attachment-0001.bin>


More information about the llvm-commits mailing list