[binutils-gdb] hppa64: Fix linking of linux kernel

John David Anglin danglin@sourceware.org
Sun Oct 26 20:35:20 GMT 2025


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

commit 42849ef824760a056bc785bea42e061d0d2e4916
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Sun Oct 26 16:34:35 2025 -0400

    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:
---
 bfd/elf64-hppa.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index 980cbcaf410..77c1505606f 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;


More information about the Binutils-cvs mailing list