aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/InterfaceStub/ELFObjHandler.cpp
AgeCommit message (Collapse)AuthorFilesLines
2021-07-19[ifs][elfabi] Merge llvm-ifs/elfabi toolsHaowei Wu1-2/+2
This change merges llvm-elfabi and llvm-ifs tools. Differential Revision: https://reviews.llvm.org/D100139
2021-07-19[ifs] Prepare llvm-ifs for elfabi/ifs merging.Haowei Wu1-52/+30
This diff changes llvm-ifs to use unified IFS file format and perform other renaming changes in preparation for the merging between elfabi/ifs. Differential Revision: https://reviews.llvm.org/D99810
2021-07-19[elfabi] Prepare elfabi/ifs merging.Haowei Wu1-12/+26
This change implements unified text stub format and command line interface proposed in the elfabi/ifs merge plan. Differential Revision: https://reviews.llvm.org/D99399
2021-02-19[elfabi] Fix a bug when .dynsym contains no non-local symbolHaowei Wu1-1/+4
This patch fixed a bug when elbabi was supplied with a tbe file contains no non-local symbol. Before this patch, it wrote 0 to sh_info of the .dynsym section, making the ELF stub file invalid. This patch fixed this issue. Differential Revision: https://reviews.llvm.org/D96930
2021-01-26[llvm-elfabi] Support ELF file that lacks .gnu.hash sectionHaowei Wu1-57/+1
Before this change, when reading ELF file, elfabi determines number of entries in .dynsym by reading the .gnu.hash section. This change makes elfabi read section headers directly first. This change allows elfabi works on ELF files which do not have .gnu.hash sections. Differential Revision: https://reviews.llvm.org/D93362
2020-12-29[llvm-elfabi] Add flag to preserve timestamp when output is the sameHaowei Wu1-12/+27
This change adds '--write-if-changed' flag to llvm-elfabi tool. When enabled, llvm-elfabi will not overwrite the existing file if the content of the file will not be changed, which preserves the timestamp. Differential Revision: https://reviews.llvm.org/D92902
2020-12-29Revert "[llvm-elfabi] Add flag to preserve timestamp when output is the same"Haowei Wu1-27/+12
This reverts commit fddb41744958d21635a60622cfb4067122810bcc. which causes test failures on Mac builders.
2020-12-29[llvm-elfabi] Add flag to preserve timestamp when output is the sameHaowei Wu1-12/+27
This change adds '--write-if-changed' flag to llvm-elfabi tool. When enabled, llvm-elfabi will not overwrite the existing file if the content of the file will not be changed, which preserves the timestamp. Differential Revision: https://reviews.llvm.org/D92902
2020-12-04[lib/Object, tools] - Make ELFObjectFile::getELFFile return reference.Georgii Rymar1-8/+7
We always have an object, so we don't have to return a pointer. Differential revision: https://reviews.llvm.org/D92560
2020-11-24[llvm-elfabi] Emit ELF .dynsym, .dynamic sectionsHaowei Wu1-5/+144
This change makes llvm-elfabi tool to emit .dynsym and .dynamic sections. Differential Revision: https://reviews.llvm.org/D89432
2020-11-23[llvm-elfabi] Emit ELF header and string table sectionsHaowei Wu1-1/+196
This change serves to create the initial framework for outputting ELF files from llvm-elfabi. Differential Revision: https://reviews.llvm.org/D61767
2020-11-23Revert "[llvm-elfabi] Emit ELF header and string table sections"Haowei Wu1-196/+1
This reverts commit 53c5fdd59a5cf7fbb4dcb7a7e84c9c4a40d32a84. Reason of revert: Some builders failed to build with ld.
2020-11-23[llvm-elfabi] Emit ELF header and string table sectionsHaowei Wu1-1/+196
This change serves to create the initial framework for outputting ELF files from llvm-elfabi. Differential Revision: https://reviews.llvm.org/D61767
2020-09-15[lib/Object] - Refine interface of ELFFile<ELFT>. NFCI.Georgii Rymar1-1/+1
`ELFFile<ELFT>` has many methods that take pointers, though they assume that arguments are never null and hence could take references instead. This patch performs such clean-up. Differential revision: https://reviews.llvm.org/D87385
2020-08-13[elfabi] Move llvm-elfabi related code to InterfaceStub libraryHaowei Wu1-0/+388
This change moves elfabi related code to llvm/InterfaceStub library so it can be shared by multiple llvm tools without causing cyclic dependencies. Differential Revision: https://reviews.llvm.org/D85678