https://sourceware.org/bugzilla/show_bug.cgi?id=32700
Bug ID: 32700 Summary: [2.44 regression] score-unknown-elf gas SEGV Product: binutils Version: 2.44 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: mikpelinux at gmail dot com Target Milestone: --- > cat /tmp/unwind-dw2.S .text .align 2 lbu r7,dwarf_reg_size_table > gas/as-new --version GNU assembler (GNU Binutils) 2.44 Copyright (C) 2025 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `score-unknown-elf'. > gas/as-new /tmp/unwind-dw2.S /tmp/unwind-dw2.S: Assembler messages: /tmp/unwind-dw2.S: Internal error (Segmentation fault). Please report this bug. > gdb gas/as-new GNU gdb (Fedora Linux) 15.2-4.fc41 Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from gas/as-new... (gdb) run /tmp/unwind-dw2.S Starting program: /tmp/objdir244/gas/as-new /tmp/unwind-dw2.S This GDB supports auto-downloading debuginfo from the following URLs: <https://debuginfod.fedoraproject.org/> Enable debuginfod for this session? (y or [n]) y Debuginfod has been enabled. To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x0000000000440b03 in s7_gen_reloc (section=0x0, fixp=0x591c90) at /tmp/binutils-2.44/gas/config/tc-score7.c:6848 6848 retval[2]->sym_ptr_ptr = notes_alloc (sizeof (asymbol *)); (gdb) print retval $1 = {0x591d80, 0x591db0, 0x0} (gdb) print retval[2] $2 = (arelent *) 0x0 The SEGV also occurs with binutils built from today's master. 2.43.1 and earlier releases worked fine. The test case is reduced from gcc's unwind-dw2.c and the bug prevents rebuilding a score-unknown-elf cross toolchain with binutils-2.44. I'll try a bisect. -- You are receiving this mail because: You are on the CC list for the bug.