[Mono-list] mkbundle and cross compiling for ARM

Jonathan Pryor jonpryor at vt.edu
Tue Jun 11 02:37:29 UTC 2013


On Jun 10, 2013, at 7:56 PM, markcoburnwa <mcoburn at globalscape.com> wrote:
> Unfortunately, I get "unrecognized symbol type" assembler errors.

The problem is that there is not just one "style" of assembly. There are multiple styles, for varying conventions, in order to appease the default assembler for each platform.

When you run mkbundle on OS X, `mkbundle` will (by default) generate OS X-style assembly, which differs from Linux-style assembly, which differs from Windows-style assembly.

Fortunately, you can set this, using the undocumented --style option:

	https://github.com/mono/mono/blob/master/mcs/tools/mkbundle/mkbundle.cs#L132

Thus:

	export CC="/opt/arm-none-linux-gnueabi-gcc-4.4.1"
	export AS="/opt/arm-none-linux-gnueabi-as"
	mkbundle --style linux -c -o myapp.c -oo bundles.o --deps myapp.exe --keeptemp

 - Jon



More information about the Mono-list mailing list