bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/22512] lm32 fdpic toolchain segfault with binutils ld


From: amodra at gmail dot com
Subject: [Bug binutils/22512] lm32 fdpic toolchain segfault with binutils ld
Date: Thu, 29 Feb 2024 03:24:12 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22512

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
The assertion failure is this one in lm32_elf_relocate_section:
            case R_LM32_16_GOT:
              /* Relocation is to the entry for this symbol in the global
                 offset table.  */
              BFD_ASSERT (sgot != NULL);
sgot being NULL results in the later segfault.

This indicates to me that lm32_elf_check_relocs was not called for the section
being relocated, which it should have been for normal sections.  check_relocs
isn't called for sections excluded from the output, but that is true also for
relocate_section.  The likely problem is that you have non-alloc sections
containing R_LM32_16_GOT relocs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]