[all-commits] [llvm/llvm-project] 744a46: [BOLT, test] Add --image-base to tests that use --s...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue May 20 17:41:48 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 744a469bbadb282c58e39b2c76008352f42e7e1a
      https://github.com/llvm/llvm-project/commit/744a469bbadb282c58e39b2c76008352f42e7e1a
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-05-20 (Tue, 20 May 2025)

  Changed paths:
    M bolt/test/AArch64/check-init-not-moved.s
    M bolt/test/AArch64/pad-before-funcs.s
    M bolt/test/RISCV/reloc-jt.s
    M bolt/test/X86/double-rel-scan.s
    M bolt/test/X86/double-rel.s

  Log Message:
  -----------
  [BOLT,test] Add --image-base to tests that use --section-start

When using -no-pie without a SECTIONS command, the linker uses the
target's default image base. If -Ttext= or --section-start specifies an
output section address below this base, the result is likely unintended.
LLD will give a diagnostic (#140187) and may change the behavior in the future.
It's good to set an explicit image base to avoid relying on its current
behavior. BOLT doesn't seem to care whether a PT_PHDR segment is
present.

Pull Request: https://github.com/llvm/llvm-project/pull/140570



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list