Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ARM] Clang LTO for Kernel #2063

Open
liusy58 opened this issue Jan 6, 2025 · 2 comments
Open

[ARM] Clang LTO for Kernel #2063

liusy58 opened this issue Jan 6, 2025 · 2 comments

Comments

@liusy58
Copy link

liusy58 commented Jan 6, 2025

Hi, I saw your work https://patchwork.kernel.org/project/linux-kbuild/cover/[email protected]/ about supporting clang lto for kernel. I wonder is there any update or branch that is still on process?

@nathanchance
Copy link
Member

That series is upstream and LTO is selectable for arm64, loongarch, riscv, and x86 but 32-bit ARM (ARCH=arm) needs some more work (likely by someone who actually cares to use it): #1627

Is that the information you were looking for?

@liusy58
Copy link
Author

liusy58 commented Jan 6, 2025

Hello, Thanks for your swift response. I try to backport this batch to alios kernel, I encounter the following error:

image

But I cannot find a solution to fix this. Could you please give me some guide?

The kernel source can be get by git clone https://gitee.com/anolis/cloud-kernel.git -b devel-5.10, and my LLVM version is 17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants