[binutils-gdb] hppa64: Fix Linux link

John David Anglin danglin@sourceware.org
Sat Jan 24 20:44:49 GMT 2026


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

commit f0e2bbc8f37b9d498948657d4ba4b11352386ff6
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Sat Jan 24 15:44:13 2026 -0500

    hppa64: Fix Linux link
    
    The "BFD_ASSERT (r_symndx != STN_UNDEF)" assert is incorrect and
    triggers linking Linux kernel.
    
    2026-01-24  John David Anglin  <danglin@gcc.gnu.org>
    
    bfd/ChangeLog:
    
            * elf64-hppa.c (elf64_hppa_relocate_section): Remove asserts.

Diff:
---
 bfd/elf64-hppa.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index 29efacbf432..fbe29e2b6b4 100644
--- a/bfd/elf64-hppa.c
+++ b/bfd/elf64-hppa.c
@@ -4426,12 +4426,6 @@ elf64_hppa_relocate_section (bfd *output_bfd,
 	    }
 	}
 
-      /* Ensure symbol isn't undefined.  */
-      BFD_ASSERT (r_symndx != STN_UNDEF);
-
-      /* Ensure input section hasn't been discarded.  */
-      BFD_ASSERT (!discarded_section (input_section));
-
       if (sym_sec != NULL && discarded_section (sym_sec))
 	RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section,
 					 rel, 1, relend, R_PARISC_NONE,


More information about the Binutils-cvs mailing list