https://sourceware.org/bugzilla/show_bug.cgi?id=24709
Bug ID: 24709 Summary: [arm] linker crash and assertion failure with CMSE Product: binutils Version: 2.33 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: clyon at gcc dot gnu.org Target Milestone: --- Hi, When running the GCC testsuite for target arm-none-eabi with -mthumb/-march=armv8-m.main+dsp/-mcpu=cortex-m33/-mfloat-abi=soft we have noticed that several tests fails in gcc.target/arm/cmse: bitfield-[123].c struct-1.c with: collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped compilation terminated. /arm-none-eabi/bin/ld: BFD (GNU Binutils) 2.32.51.20190618 assertion fail /binutils/bfd/elf32-arm.c:4596 These tests are linked with -Wl,--section-start,.gnu.sgstubs=0x20400000, and I think the problem is the result of a bad interaction between CMSE stubs and far-call stubs. When using 0x00400000 instead, the tests pass. I plan to have a look at the issue, but if someone from ARM could confirm which config they are using to run these GCC tests, it could be helpful. Actually I'm wondering how/if it can pass at all, but OTOH I think if this address was hardcoded in the GCC testsuite, it means that the test was passing at some point? -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils