[llvm] [BOLT] Detect Linux kernel based on ELF program headers (PR #80086)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 30 17:12:38 PST 2024
================
@@ -512,13 +512,19 @@ Error RewriteInstance::discoverStorage() {
Phdr.p_offset,
Phdr.p_filesz,
Phdr.p_align};
+ if (BC->TheTriple->getArch() == llvm::Triple::x86_64 &&
+ Phdr.p_vaddr >= 0xFFFF'FFFF'8000'0000)
----------------
aaupov wrote:
Make it a named constant?
https://github.com/llvm/llvm-project/pull/80086
More information about the llvm-commits
mailing list