]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
hppa64: Fix linking of linux kernel
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 26 Oct 2025 20:34:35 +0000 (16:34 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 26 Oct 2025 20:34:35 +0000 (16:34 -0400)
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.

bfd/elf64-hppa.c

index 980cbcaf4107712afcd91b4f9b95419403a3ce2c..77c1505606f4ef0de54aabc9f00499e24f1c47d6 100644 (file)
@@ -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;