-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LoongArch: fix gas BFD_RELOC_8/16/24 bug
If fixP->fx_subsy is NULL, BFD_RELOC_8/16/24 can't convert to BFD_RELOC_LARCH_xxx. gas/config/tc-loongarch.c
- Loading branch information
1 parent
3c4e228
commit f555b32
Showing
3 changed files
with
58 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# from linux kernel entry.s | ||
# test line 10 ".byte \type", BFD_RELOC_8 -> BFD_RELOC_RLARCH_ADD8 -> R_LARCH_ADD8 | ||
|
||
.macro UNWIND_HINT type:req sp_reg=0 sp_offset=0 end=0 | ||
.Lunwind_hint_ip_\@: | ||
.pushsection .discard.unwind_hints | ||
.long .Lunwind_hint_ip_\@ - . | ||
.short \sp_offset | ||
.byte \sp_reg | ||
.byte \type | ||
.byte \end | ||
.balign 4 | ||
.popsection | ||
.endm | ||
|
||
UNWIND_HINT type=ORC_TYPE_CALL sp_reg=2 |
This file contains 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