../configure --with-system-zlibifnotset--with-system-zlibyou maybe encounter bfd error bool bfd_read()1.GDB BUG描述 当 GDB 加载一个 不包含 .text 段 的共享库shared object时内部代码仍默认认为 .text section 一定存在从而导致 section index 未正确初始化最终触发internal-error internal-error: sect_index_text not initialized2.修复方案 在 gdb/symfile.c 中增加 defensive check.text 不存在时将 sect_index_text 初始化为非法值-13.引用 https://inbox.sourceware.org/gdb-patches/87367zt57j.fsf%40linux-m68k.org/t/