llvm/bolt/test
Vladislav Khmelevsky 729d29e167 [BOLT] Update dynamic relocations from section relocations
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
2022-02-16 18:40:54 +03:00
..
AArch64 [BOLT] Fix aarch64 dwarf test 2022-02-15 13:59:38 +03:00
Inputs [PR] Fix update-debug-sections for AArch64 2021-12-08 16:53:38 +03:00
runtime [BOLT] Update dynamic relocations from section relocations 2022-02-16 18:40:54 +03:00
Unit [BOLT] Prepare BOLT for unit-testing 2022-01-27 00:22:13 +03:00
X86 [BOLT][DWARF] Add ability to insert new entries in to DIE 2022-02-15 18:07:19 -08:00
bolt-icf.test Re-enable Windows build and fix issues 2021-12-23 05:59:35 -08:00
CMakeLists.txt [BOLT][TEST] Add heatmap.test 2022-02-02 18:56:15 -08:00
heatmap.test [BOLT] Refactor heatmap to be standalone tool 2022-02-07 22:00:44 +03:00
keep-aranges.test [BOLT] Fix DWARFv5 for aarch64 2022-01-27 02:14:58 +03:00
link_fdata.py [BOLT][TEST] Import jump-table-icp.test, update link_fdata script 2021-11-08 10:56:21 -08:00
lit.cfg.py [BOLT] Add ld.lld substitution 2022-02-07 20:59:18 -08:00
lit.site.cfg.py.in [BOLT][CMAKE] Accept BOLT_CLANG_EXE and BOLT_LLD_EXE 2022-01-15 04:37:29 -08:00
non-empty-debug-line.test [BOLT] Fix DWARFv5 for aarch64 2022-01-27 02:14:58 +03:00