Disable linker relaxation for riscv64#621
Merged
tavip merged 1 commit intolkl:masterfrom Mar 22, 2026
Merged
Conversation
Previously, a large amount of time was taken during linker relaxation of riscv64 architecture. This disables it and reduces the link time to several seconds. Signed-off-by: Chisheng Chen <johnny1001s000602@gmail.com>
Member
|
lgtm. |
Author
Yes, it is functional. I have tested it on the Linux kernel running on the QEMU virt machine. I used kbox[1] as an example, which is a Linux kernel sandbox implemented with LKL, and it works well. This is my build process[2]. [1] https://github.com/sysprog21/kbox/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, a large amount of time was taken during the linker relaxation of riscv64 architecture.
This disables it and reduces the link time to several seconds.
The success compilation process is as follows:
elf64-littleriscvin menuconfig