[all-commits] [llvm/llvm-project] 5f5a0b: [asan][test] Use --image-base for Linux/asan_preli...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Sep 7 14:45:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f5a0bb0872a9673bad08b38bc0b14c42263902a
      https://github.com/llvm/llvm-project/commit/5f5a0bb0872a9673bad08b38bc0b14c42263902a
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-09-07 (Mon, 07 Sep 2020)

  Changed paths:
    M compiler-rt/test/asan/TestCases/Linux/asan_prelink_test.cpp

  Log Message:
  -----------
  [asan][test] Use --image-base for Linux/asan_prelink_test.cpp if ld is LLD

LLD supports -Ttext but with the option there is still a PT_LOAD at address zero
and thus the Linux kernel will map it to a different address and the test will fail.

Use --image-base instead.




More information about the All-commits mailing list