]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
hppa64: Fix Linux link
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 24 Jan 2026 20:44:13 +0000 (15:44 -0500)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 24 Jan 2026 20:44:13 +0000 (15:44 -0500)
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.

bfd/elf64-hppa.c

index 29efacbf4328469c9c7a1817b2c68d3d6974000a..fbe29e2b6b424557e8adbf0d35bbae3a54f933ef 100644 (file)
@@ -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,