[committed] hppa64: Fix linking of linux kernel

John David Anglin dave.anglin@bell.net
Sun Oct 26 20:40:46 GMT 2025
A previous commit incorrectly set hh to NULL in elf64_hppa_check_relocs.
This broke relocation handling for linker and ldscript symbols.

Committed to trunk.

Dave
---

hppa64: Fix linking of linux kernel

Relocation handling is currently brokern for linker and ld script
symbols.

2025-10-26  John David Anglin  <danglin@gcc.gnu.org>

bfd/ChangeLog:

	* elf64-hppa.c (elf64_hppa_check_relocs): Don't set hh to
	NULL for linker and ld script symbols.

diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index 6a63ce2cc12..14650b59bad 100644
--- a/bfd/elf64-hppa.c
+++ b/bfd/elf64-hppa.c
@@ -661,8 +661,6 @@ elf64_hppa_check_relocs (bfd *abfd,
 	     object.  */
 	  if (!hh->eh.root.linker_def && !hh->eh.root.ldscript_def)
 	    hh->eh.ref_regular = 1;
-	  else
-	    hh = NULL;
 	}
       else
 	hh = NULL;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20251026/559a304b/attachment.sig>


More information about the Binutils mailing list