[ECOS] CYGPKG_LOADER: compiling for xscale-elf giving error

srinivas naga vutukuri srinivas.vutukuri@gmail.com
Thu Jun 12 09:59:00 GMT 2008


Hi,

        I want to try the dynamic loading of library or module.
Just added CYGPKG_LOADER. And my target is xsclae-elf (big-endian).
But when comes to linking of crtbeginS.o dlforce.o crtendS.o to get
libdlforce.so
Am getting the error:

dlforce.o: compiled for a big endian system and target is little endian
File in wrong format: failed to merge target specific data of file src/dlforce.o

Could you please help me out in get rid off? Is it possible the
dynamic loading with xscale target (big-endian)?

____________snip__________________________
xscale-elf-gcc -g -nostdlib
-L/cygdrive/c/office/ecos-repository/install/lib -shared -Tdynamic.ld
-o /cygdrive/c/office/ecos-repository/install/lib/libdlforce.so
/cygdrive/c/office/ecos-repository/install/lib/crtbeginS.o
src/dlforce.o /cygdrive/c/office/ecos-repository/install/lib/crtendS.o
/usr/local/lib/gcc-lib/xscale-elf/Wasabi-3.3.1/../../../../xscale-elf/bin/ld:
src/dlforce.o: compiled for a big endian system and target is little
endian
File in wrong format: failed to merge target specific data of file src/dlforce.o

collect2: ld returned 1 exit status
make[1]: *** [/cygdrive/c/office/ecos-repository/install/lib/libdlforce.so]
Error 1
make[1]: Leaving directory
`/cygdrive/c/office/ecos-repository/ObjFiles/services/loader/current'
make: *** [build] Error 2
Done...library built!
____________snip___________________________


best regards,
srinivas.

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list