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:
5830876
)
LoongArch: Fix dynamic reloc not generated bug in some cases.
author
mengqinggang
<mengqinggang@loongson.cn>
Sat, 3 Dec 2022 07:34:35 +0000
(15:34 +0800)
committer
liuzhensong
<liuzhensong@loongson.cn>
Tue, 6 Dec 2022 00:48:57 +0000
(08:48 +0800)
bfd/ChangeLog:
* elfnn-loongarch.c (loongarch_elf_relocate_section): Likewise.
bfd/elfnn-loongarch.c
patch
|
blob
|
history
diff --git
a/bfd/elfnn-loongarch.c
b/bfd/elfnn-loongarch.c
index c040c5b4ec8e1bd48e475b246c8251311e46e153..8d8a6a47317a734df5c2e39175dc789cddfd6b92 100644
(file)
--- a/
bfd/elfnn-loongarch.c
+++ b/
bfd/elfnn-loongarch.c
@@
-2890,7
+2890,7
@@
loongarch_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
/* The offset must always be a multiple of the word size.
So, we can use the least significant bit to record
whether we have already processed this entry. */
- if (
local_got_offsets[r_symndx]
== 0)
+ if (
(local_got_offsets[r_symndx] & 1)
== 0)
{
if (is_pic)
{