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