[PATCH 1/2, applied] ir: Remove over zealous assert from elf_symbol::update_main_symbol
Dodji Seketeli
dodji@seketeli.org
Thu Sep 10 14:41:41 GMT 2026
Hello,
While testing the build on Debian systems, I noticed that the assert
in elf_symbol::update_main_symbol was probably too eager. The symbol
that this method is invoked on might not necessarily be the main
symbol, and yet, the function should succeed.
I am thus removing the assert for now.
* src/abg-ir.cc (elf_symbol::update_main_symbol): Remove the
assert.
Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
---
src/abg-ir.cc | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/abg-ir.cc b/src/abg-ir.cc
index b3bc2ab1..8f43db58 100644
--- a/src/abg-ir.cc
+++ b/src/abg-ir.cc
@@ -3099,7 +3099,6 @@ elf_symbol::add_alias(const elf_symbol_sptr& alias)
elf_symbol_sptr
elf_symbol::update_main_symbol(const std::string& name)
{
- ABG_ASSERT(is_main_symbol());
if (!has_aliases() || get_name() == name)
return get_main_symbol();
--
2.55.0
--
Dodji
More information about the Libabigail
mailing list