Repository navigation
Support LLVM linked ELF RISC-V executable - #13197
Open
metarutaiga wants to merge 1 commit into
Open
metarutaiga wants to merge 1 commit into
metarutaiga wants to merge 1 commit into
Conversation
acassis
previously approved these changes
Aug 27, 2024
Contributor
|
@metarutaiga please squash into one patch. |
metarutaiga
force-pushed
the
llvm-elf-riscv
branch
from
August 27, 2024 22:57
8813631 to
3409eeb
Compare
xiaoxiang781216
approved these changes
May 7, 2025
jerpelea
requested changes
May 7, 2025
jerpelea
left a comment
Contributor
There was a problem hiding this comment.
please update the title to
libs/libc: Support LLVM linked ELF RISC-V executable
add a commit message
and sign the commit
Contributor
|
Hi @metarutaiga, nice to see you working on it again. Please note that now all commits need to be signed (git commit -s) |
acassis
reviewed
May 7, 2025
| * Name: _extract_bits | ||
| * | ||
| * Description: | ||
| * Copied from ELF_riscv.cpp (LLVM) |
Contributor
There was a problem hiding this comment.
Please update the description to explain what it does, you can keep this comment since ELF_riscv.cpp is licensed under Apache 2.0 as well
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.
Summary
I tried to use LLVM to build my executable, but it crashed always.
Then I found it did't implement some relocation.
Impact
Implement R_RISCV_BRANCH / R_RISCV_JAL / R_RISCV_RVC_JUMP / R_RISCV_RVC_BRANCH
Testing