[llvm] [BOLT] Detect Linux kernel version if the binary is a Linux kernel (PR #119088)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 8 19:01:23 PST 2024
================
@@ -1030,6 +1031,25 @@ void RewriteInstance::discoverFileObjects() {
continue;
}
+ if (BC->IsLinuxKernel && SymName == "linux_banner") {
----------------
maksfb wrote:
The reading part also should be in the `LinuxKernelRewriter`. You can access symbols via `BinaryData` objects.
https://github.com/llvm/llvm-project/pull/119088
More information about the llvm-commits
mailing list