Menu

#2722 Core dump with -Wl-M

open
nobody
None
STM8
5
2018-02-19
2018-02-19
No

Trying to pass the -M option to the linker to get the .mem output file with STM8

$ /opt/sdcc/bin/sdcc -Wl-M  -mstm8 main.c 
sdldstm8: /home/sdcc-builder/build/sdcc-build/orig/sdcc/sdas/linksrc/lkmem.c:463: summary: Assertion `0' failed.
Aborted (core dumped)

I don't think it matters what is in main.c. For testing I had:

void main(void)
{
}

Even if this is not supported for STM8 it should not core dump.

$ /opt/sdcc/bin/sdcc -v
SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.6.9 #10174 (Linux)
published under GNU General Public License (GPL)
$ uname -a 
Linux Lapis 4.13.0-32-generic #35~16.04.1-Ubuntu SMP Thu Jan 25 10:13:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Discussion


Log in to post a comment.

Monday.com Logo