diff options
author | mengqinggang <mengqinggang@loongson.cn> | 2022-12-03 15:34:35 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2022-12-06 08:48:57 +0800 |
commit | 8b4d46dfdf2023d3da295fc3748ce67f064e3df0 (patch) | |
tree | 6e158cc134da94b986378e38607da54d9eccdda8 /bfd/elfnn-loongarch.c | |
parent | 5830876a0cca17bef3b2d54908928e72cca53502 (diff) | |
download | binutils-8b4d46dfdf2023d3da295fc3748ce67f064e3df0.zip binutils-8b4d46dfdf2023d3da295fc3748ce67f064e3df0.tar.gz binutils-8b4d46dfdf2023d3da295fc3748ce67f064e3df0.tar.bz2 |
LoongArch: Fix dynamic reloc not generated bug in some cases.
bfd/ChangeLog:
* elfnn-loongarch.c (loongarch_elf_relocate_section): Likewise.
Diffstat (limited to 'bfd/elfnn-loongarch.c')
-rw-r--r-- | bfd/elfnn-loongarch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c index c040c5b..8d8a6a4 100644 --- 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) { |