LoongArch64: Optimized PC related relocation and added LLVM support#12515
Open
kilaterlee wants to merge 2 commits intotianocore:masterfrom
Open
LoongArch64: Optimized PC related relocation and added LLVM support#12515kilaterlee wants to merge 2 commits intotianocore:masterfrom
kilaterlee wants to merge 2 commits intotianocore:masterfrom
Conversation
The relocation methods of R_LARCH_PCALA_HI20, R_LARCH_PCALA_LO12, R_LARCH_GOT_PC_HI20 and R_LARCH_GOT_PC_LO12 have been optimized to support cases where HI is not adjacent to LO and where one HI corresponds to multiple LOs. Signed-off-by: Chao Li <[email protected]> Cc: Liming Gao <[email protected]> Cc: Guillermo Antonio Palomino Sosa <[email protected]> Cc: Yuwei Chen <[email protected]> Cc: Poncho Figueroa <[email protected]> Cc: Mike Beaton <[email protected]>
Added LoongArch64 CLANGDWARF compiler support. It requires the LLVM version 22.1.0-rc1 or higher. Signed-off-by: Chao Li <[email protected]> Cc: Liming Gao <[email protected]> Cc: Guillermo Antonio Palomino Sosa <[email protected]> Cc: Yuwei Chen <[email protected]> Cc: Poncho Figueroa <[email protected]> Cc: Mike Beaton <[email protected]>
293aa0e to
ecae105
Compare
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.
Description
Patch1: The relocation methods of R_LARCH_PCALA_HI20, R_LARCH_PCALA_LO12, R_LARCH_GOT_PC_HI20 and R_LARCH_GOT_PC_LO12 have been optimized to support cases where HI is not adjacent to LO and where one HI corresponds to multiple LOs.
Patch2: Added LoongArch64 CLANGDWARF compiler support. It requires the LLVM version 22.1.0-rc1 or higher.
How This Was Tested
Download the LLVM 22.1.0-rc1 or higher, export CLANGDWARF_BIN PATH, and build use:
build -b DEBUG -t CLANGDWARF -a LOONGARCH64 -p OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dscorbuild -b RELEASE -t CLANGDWARF -a LOONGARCH64 -p OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc. It should build and run in QEMU.Integration Instructions
N/A.