forked from OSchip/llvm-project
729d29e167
This patch changes patchELFAllocatableRelaSections from going through old relocations sections and update the relocation offsets to emitting the relocations stored in binary sections. This is needed in case we would like to remove and add dynamic relocations during BOLT work and it is used by golang support pass. Note: Currently we emit relocations in the old sections, so the total number of them should be equal or less of old number. Testing: No special tests are neeeded, since this patch does not fix anything or add new functionality (it only prepares to add). Every PIC-compiled test binary will use this code and thus become a test. But just in case the aarch64 dynamic relocations tests were added. Vladislav Khmelevsky, Advanced Software Technology Lab, Huawei Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D117612 |
||
---|---|---|
.. | ||
AArch64 | ||
Inputs | ||
Unit | ||
X86 | ||
runtime | ||
CMakeLists.txt | ||
bolt-icf.test | ||
heatmap.test | ||
keep-aranges.test | ||
link_fdata.py | ||
lit.cfg.py | ||
lit.site.cfg.py.in | ||
non-empty-debug-line.test |