Okay, I got the Linux toolchain to work!!!
So the correct command to compile is:

lm32-linux-gcc -Wl,-q -mmultiply-enabled -mdivide-enabled -mbarrel-shift-
enabled -msign-extend-enabled [...]
lm32-linux-strip --strip-unneeded --strip-debug --remove-section=.note --
remove-section=.comment [...]

This was found by compiling netcat (from the source distributed by Theobroma 
Systems) and tweaking compiler, linker and stripper flags until the output of 
readelf perfectly matched the one from the netcat binary they distribute. The 
new binary then worked on the board.

Is there a way to get the toolchain to set automatically this mess of flags in 
order to reduce the complexity of compiling applications for Linux/LM32?

Sébastien
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkym...@freenode
Webchat: www.milkymist.org/irc.html
Wiki: www.milkymist.org/wiki

Reply via email to