public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] LoongArch: Fix dynamic reloc not generated bug in some cases.
@ 2022-12-06  0:53 liu & zhensong
  0 siblings, 0 replies; only message in thread
From: liu & zhensong @ 2022-12-06  0:53 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8b4d46dfdf2023d3da295fc3748ce67f064e3df0

commit 8b4d46dfdf2023d3da295fc3748ce67f064e3df0
Author: mengqinggang <mengqinggang@loongson.cn>
Date:   Sat Dec 3 15:34:35 2022 +0800

    LoongArch: Fix dynamic reloc not generated bug in some cases.
    
    bfd/ChangeLog:
    
            * elfnn-loongarch.c (loongarch_elf_relocate_section): Likewise.

Diff:
---
 bfd/elfnn-loongarch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c
index c040c5b4ec8..8d8a6a47317 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)
 		    {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-06  0:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-06  0:53 [binutils-gdb] LoongArch: Fix dynamic reloc not generated bug in some cases liu & zhensong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).