https://sourceware.org/bugzilla/show_bug.cgi?id=33793
Bug ID: 33793
Summary: MIPS: 2.45.50.20260113 assertion fail
../../bfd/elfxx-mips.c:4038
Product: binutils
Version: 2.46 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: syq at debian dot org
Target Milestone: ---
Created attachment 16570
--> https://sourceware.org/bugzilla/attachment.cgi?id=16570&action=edit
how to reproduce
I find this problem when I build glibc with trunk binutils.
With bisect, this problem happened from:
commit 54fbc12d6404b645363f901110a21f4410067df5
Author: H.J. Lu <[email protected]>
Date: Fri Nov 28 16:07:57 2025 +0800
elf: Renumber local dynamic symbols only if needed
And this patch can be a workaround:
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 34f58c311c1..ae4b8871202 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -14493,6 +14493,7 @@ _bfd_mips_elf_link_hash_table_create (bfd *abfd)
}
ret->root.init_plt_refcount.plist = NULL;
ret->root.init_plt_offset.plist = NULL;
+ ret->root.has_local_dynsyms = true;
return &ret->root.root;
}
https://sourceware.org/pipermail/binutils/2026-January/147280.html
To reproduce this problem you can use the attached file and run the `sh yy.sh`
script in the `reproduce` directory.
--
You are receiving this mail because:
You are on the CC list for the bug.