[Milkymist-devel] Compiling uClinux/LM32 userspace apps
Sébastien Bourdeauducq
sebastien.bourdeauducq at lekernel.net
Mon Dec 28 13:28:26 PST 2009
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
More information about the Devel
mailing list