[msan] Remove non-working MSAN_LINUX_X86_64_OLD_MAPPING
authorFangrui Song <i@maskray.me>
Sat, 31 Dec 2022 03:43:19 +0000 (19:43 -0800)
committerFangrui Song <i@maskray.me>
Sat, 31 Dec 2022 03:43:19 +0000 (19:43 -0800)
commit99fc4d3d1636c81dad5b9c9c4537347c44fa5065
treeb74fe60bbb1c0733498d66e88d40aa4351cbca4b
parente2b65ff98d690a3a380385c68ea696a93b9b2e7f
[msan] Remove non-working MSAN_LINUX_X86_64_OLD_MAPPING

r249754 (2015) added this macro (not set anywhere) for an escape hatch.
This old layout has been non-working for many years (Linux
arch/x86/include/asm/elf.h ELF_ET_DYN_BASE is outside the APP range):

    FATAL: Code 0x558547327980 is out of application range. Non-PIE build?
    FATAL: MemorySanitizer can not mmap the shadow memory.
    FATAL: Make sure to compile with -fPIE and to link with -pie.
    FATAL: Disabling ASLR is known to cause this error.
    FATAL: If running under GDB, try 'set disable-randomization off'.

Non-pie doesn't work either.
compiler-rt/lib/msan/msan.h
compiler-rt/lib/msan/msan_allocator.cpp
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp