mirror-llvm-project/bolt/test
Adam Bzowski 30611cae03
[BOLT] Fix RELR addend updates for non-zero image bases (#213000)
This patch fixes an AArch64 BOLT failure exposed by LLVM commit
`fbba327208d7f6994f9a28a51dca3e913e3b444a`, which enabled packed
relative relocations (RELR) globally. BOLT incorrectly used a virtual
relocation address as a file offset when updating RELR addends,
corrupting instrumented executables when their image base was non-zero.
The observed CMake compiler-check failure was only a consequence of the
corrupted BOLT-instrumented Clang executable crashing; the defect itself
is in BOLT, not CMake.

The regression test links an AArch64 PIE with a non-zero image base and
verifies that BOLT updates the RELR addend at the correct file offset.

Assisted-by: Codex
2026-07-30 23:03:38 +01:00
..
AArch64 [BOLT] Fix RELR addend updates for non-zero image bases (#213000) 2026-07-30 23:03:38 +01:00
binary-analysis/AArch64 [BOLT][rewrite] warn about functions without CFG before binary analyses. (#197294) 2026-06-19 17:02:11 +01:00
Inputs [BOLT] Template patchELFPHDRTable and rewriteNoteSections for ELF32 (#189715) 2026-04-03 15:16:31 -05:00
perf2bolt [BOLT] Add test for perf2bolt perfscript profile output (#201792) 2026-06-15 13:23:47 +02:00
RISCV [BOLT][RISCV] Support the TLS global-dynamic relocation (#209995) 2026-07-21 17:25:01 -07:00
runtime [BOLT] Instrument static PIEs through entry point (#204475) 2026-06-17 16:24:58 -07:00
Unit
X86 [BOLT] Fix strict mode bug in removal of block referenced by JT (#211940) 2026-07-27 12:35:54 -07:00
assume-abi.test [BOLT][AArch64] Refuse to run IndirectCallPromotion pass (#194363) 2026-04-28 18:39:15 +01:00
avoid-wx-segment.c
bad-exe.test
bolt-icf.test
bolt-info.test
bolt-reserved.test [BOLT] Mark BOLTReserved segment executable (#181606) 2026-02-19 15:07:50 -08:00
cache+-deprecated.test
CMakeLists.txt
code-at-high-address.c [BOLT] Synchronize function and section order (#172419) 2025-12-16 21:55:33 -08:00
dump-dot-func.test [BOLT] Add missing system-linux requirements to tests (#172968) 2025-12-19 11:16:18 +01:00
dwarf5-missing-dwo.c [BOLT] Add missing system-linux requirements to tests (#172968) 2025-12-19 11:16:18 +01:00
dwo-name-retrieving.test [BOLT] Add missing system-linux requirements to tests (#172968) 2025-12-19 11:16:18 +01:00
eh-frame-hdr.test [BOLT] Emit .eh_frame_hdr before .eh_frame to prevent table scans from libdw (#201917) 2026-06-22 14:15:51 -07:00
eh-frame-overwrite.test
elf32-basic.test [BOLT] Template patchELFPHDRTable and rewriteNoteSections for ELF32 (#189715) 2026-04-03 15:16:31 -05:00
empty-fdata-file.test Early exit llvm-bolt when coming across empty data files (#176859) 2026-04-06 09:37:05 +05:30
heatmap.test
icf-hot-text-mover.c [BOLT] Don't fold hot text mover functions in ICF (#180367) 2026-02-07 20:39:24 -08:00
indirect-goto-relocs.test [BOLT] Register PIE indirect goto relocations (#206819) 2026-07-08 14:21:12 -07:00
invalid-profile.test
keep-aranges.test
link_fdata.py [BOLT] Improve regexp in link_fdata.py (#152694) 2025-09-02 09:56:46 +01:00
lit.cfg.py [BOLT] Remove ability to use external shell 2026-07-14 18:12:11 -07:00
lit.local.cfg [NFCI][bolt][test] Enable AT&T syntax generally (#172355) 2026-01-23 10:46:31 +02:00
lit.site.cfg.py.in
lsda-section-name.cpp [BOLT] Add missing system-linux requirements to tests (#172968) 2025-12-19 11:16:18 +01:00
max-funcs.test [BOLT] Fix test with -DCLANG_DEFAULT_PIE_ON_LINUX=OFF (#185047) 2026-03-09 14:21:00 +01:00
merge-fdata-bat-no-lbr.test [BOLT][merge-fdata] Skip truncated lines in raw profile data (#183187) 2026-02-25 21:42:30 -08:00
merge-fdata-lbr-mode.test
merge-fdata-mem-prof.test [BOLT] Fix merge-fdata for memory events (#128108) 2026-01-05 20:21:32 -08:00
merge-fdata-mixed-bat-no-lbr.test [BOLT][merge-fdata] Skip truncated lines in raw profile data (#183187) 2026-02-25 21:42:30 -08:00
merge-fdata-mixed-mode.test [BOLT][merge-fdata] Skip truncated lines in raw profile data (#183187) 2026-02-25 21:42:30 -08:00
merge-fdata-no-lbr-event-multi.test [BOLT][merge-fdata] Preserve event names 2026-05-27 00:38:55 -07:00
merge-fdata-no-lbr-event.test [BOLT][merge-fdata] Preserve event names 2026-05-27 00:38:55 -07:00
merge-fdata-no-lbr-mode.test [BOLT][merge-fdata] Skip truncated lines in raw profile data (#183187) 2026-02-25 21:42:30 -08:00
merge-fdata-skip-truncated.test [BOLT][merge-fdata] Skip truncated lines in raw profile data (#183187) 2026-02-25 21:42:30 -08:00
merge-fdata-uninitialized-header.test
no-relocs.test
non-empty-debug-line.test
permission.test [BOLT] Fix tests that were unresolved when using lit's internal shell 2025-08-29 12:51:21 -07:00
pie.test
print-only.test [BOLT][print] Add option '--print-only-file' (NFC) (#168023) 2025-11-14 10:26:21 -08:00
process-debug-line [BOLT] Fix debug line emission for functions in multiple compilation units (#151230) 2025-09-11 10:41:11 -07:00
program-header.test
R_ABS.pic.lld.cpp
re-optimize.test
reorder-data-writable-ptload.c
safe-icf-relative-vtable.cpp [BOLT] Make safe ICF work with relative vtable (#170629) 2025-12-04 07:33:42 -08:00
shared-object.test
timers.c [BOLT] Add missing system-linux requirements to tests (#172968) 2025-12-19 11:16:18 +01:00
unreadable-profile.test
verify-cfg.test
yaml-profile-kind.c [BOLT] Add missing system-linux requirements to tests (#172968) 2025-12-19 11:16:18 +01:00