From: John David Anglin Date: Sat, 24 Jan 2026 20:44:13 +0000 (-0500) Subject: hppa64: Fix Linux link X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0e2bbc8f37b9d498948657d4ba4b11352386ff6;p=thirdparty%2Fbinutils-gdb.git 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 bfd/ChangeLog: * elf64-hppa.c (elf64_hppa_relocate_section): Remove asserts. --- 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,