[all-commits] [llvm/llvm-project] 827dd1: [Bolt] Explicitly request PIE in tests (#108818)

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Sep 16 23:59:11 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 827dd1ef2f104a98b9912694e5938d6d12808200
      https://github.com/llvm/llvm-project/commit/827dd1ef2f104a98b9912694e5938d6d12808200
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-09-17 (Tue, 17 Sep 2024)

  Changed paths:
    M bolt/test/lit.local.cfg

  Log Message:
  -----------
  [Bolt] Explicitly request PIE in tests (#108818)

When clang is built with `-DCLANG_DEFAULT_PIE_ON_LINUX=OFF`, a number of
bolt tests fail:

    BOLT :: AArch64/build_id.c
    BOLT :: AArch64/plt-call.test
BOLT :: X86/dwarf5-dwarf4-types-backward-forward-cross-reference.test
    BOLT :: X86/dwarf5-locexpr-referrence.test
    BOLT :: X86/internal-call-instrument.s
    BOLT :: X86/linux-static-keys.s
    BOLT :: X86/plt-call.test

Avoid this by explicitly adding `-fPIE` and `-pie` to the default flags
in tests, so we don't depend on the clang-side default.



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