arm cross-compiler and asm errors

Ian Lance Taylor iant@google.com
Fri Sep 25 05:57:00 GMT 2009


"Vincent R." <forumer@smartmobili.com> writes:

> I am trying to compile libffi-3.0.8 using cegcc-4.4.0 and there are some
> compilation errors
> with assembler file:
>
> arm-mingw32ce-gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src
> -I. -I./include -Iinclude -I./src -g -O2 -MT src/arm/sysv.lo -MD -MP -MF
> src/arm/.deps/sysv.Tpo -c src/arm/sysv.S  -DDLL_EXPORT -DPIC -o
> src/arm/.libs/sysv.o
> src/arm/sysv.S: Assembler messages:
> src/arm/sysv.S:138: Warning: .type pseudo-op used outside of .def/.endef
> ignored.

The code is using ELF-style pseudo-ops, but the assembler is looking
for PE-style.  You will need to port the code to support PE.  Actually
you will be fine if you simply delete the .type and .size pseudo-ops.

Ian



More information about the Gcc-help mailing list