mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
LoongArch: Fix dynamic reloc not generated bug in some cases.
bfd/ChangeLog: * elfnn-loongarch.c (loongarch_elf_relocate_section): Likewise.
This commit is contained in:

committed by
liuzhensong

parent
5830876a0c
commit
8b4d46dfdf
@ -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.
|
/* The offset must always be a multiple of the word size.
|
||||||
So, we can use the least significant bit to record
|
So, we can use the least significant bit to record
|
||||||
whether we have already processed this entry. */
|
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)
|
if (is_pic)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user