[committed] hppa64: Fix Linux link
John David Anglin
dave.anglin@bell.net
Sat Jan 24 20:57:31 GMT 2026
Committed to trunk.
Dave
---
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 --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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260124/1517b13b/attachment.sig>
More information about the Binutils
mailing list