projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc45b28
)
LoongArch: Correct comments.
author
caiyinyu
<caiyinyu@loongson.cn>
Tue, 17 Oct 2023 12:58:40 +0000
(20:58 +0800)
committer
liuzhensong
<liuzhensong@loongson.cn>
Wed, 18 Oct 2023 00:58:05 +0000
(08:58 +0800)
bfd/elfnn-loongarch.c
patch
|
blob
|
history
diff --git
a/bfd/elfnn-loongarch.c
b/bfd/elfnn-loongarch.c
index 5d5ca19d4903a41954efe183c640b009c2b27cba..18ad3cc91cad5b7b4800a69f8aaa3f9421cc8b74 100644
(file)
--- a/
bfd/elfnn-loongarch.c
+++ b/
bfd/elfnn-loongarch.c
@@
-2325,7
+2325,7
@@
loongarch_reloc_is_fatal (struct bfd_link_info *info,
addi.d $t0, $zero, lo12 (0x812)
$t0 = 0xfffffffffffff812 (if lo12 > 0x7ff, because sign-extend,
lo20 need to sub 0x1)
- lu32i.d $t0, lo
12
(0x71234)
+ lu32i.d $t0, lo
20
(0x71234)
$t0 = {0x71234, 0xfffff812}
= 0x71234fffff812
lu52i.d $t0, hi12 (0x0)