This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
building of dynamic object loader fails.
- From: "Ferenc Cserepkei (IJ (ETH))" <ferenc dot cserepkei at ericsson dot com>
- To: <ecos-devel at ecos dot sourceware dot org>
- Date: Mon, 19 Mar 2012 10:57:04 +0100
- Subject: building of dynamic object loader fails.
Weloce,
I have tried to build the dynamic loader for the platform. libdlforce.so
fails with relocation problems
I tried to build on a MPC8572DS target:
make[1]: Entering directory `/home/csfera/dynload/dynload_build/services/loader/current'
powerpc-8548-eabi-gcc -c -I/home/csfera/dynload/dynload_install/include -I/opt/ecos/openetech/packages/services/loader/current -I/opt/ecos/openetech/packages/services/loader/current/src -I/opt/ecos/openetech/packages/services/loader/current/tests -I. -I/opt/ecos/openetech/packages/services/loader/current/src/ -finline-limit=7000 -msoft-float -mno-hard-dfp -Wa,-me500x2 -Wall -Wpointer-arith -Winline -Wundef -Woverloaded-virtual -g -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -Wp,-MD,src/loader.tmp -o src/services_loader_loader.o /opt/ecos/openetech/packages/services/loader/current/src/loader.cxx
powerpc-8548-eabi-gcc -c -I/home/csfera/dynload/dynload_install/include -I/opt/ecos/openetech/packages/services/loader/current -I/opt/ecos/openetech/packages/services/loader/current/src -I/opt/ecos/openetech/packages/services/loader/current/tests -I. -I/opt/ecos/openetech/packages/services/loader/current/src/ -finline-limit=7000 -msoft-float -mno-hard-dfp -Wa,-me500x2 -Wall -Wpointer-arith -Winline -Wundef -Woverloaded-virtual -g -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -Wp,-MD,src/dload.tmp -o src/services_loader_dload.o /opt/ecos/openetech/packages/services/loader/current/src/dload.cxx
/opt/ecos/openetech/packages/services/loader/current/src/loader.cxx: In member function 'const char* Cyg_Loader::error_string()':
/opt/ecos/openetech/packages/services/loader/current/src/loader.cxx:237:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/opt/ecos/openetech/packages/services/loader/current/src/loader.cxx: In constructor 'Cyg_LoadObject_Base::Cyg_LoadObject_Base(Cyg_LoaderStream&, cyg_uint32, Cyg_LoaderMemAlloc*)':
/opt/ecos/openetech/packages/services/loader/current/src/loader.cxx:298:15: warning: variable 'memaddr' set but not used [-Wunused-but-set-variable]
/opt/ecos/openetech/packages/services/loader/current/src/loader.cxx: In member function 'virtual cyg_code Cyg_LoaderStream_File::seek(CYG_ADDRWORD)':
/opt/ecos/openetech/packages/services/loader/current/src/loader.cxx:1045:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
powerpc-8548-eabi-ar rcs /home/csfera/dynload/dynload_install/lib/libtarget.a src/services_loader_loader.o src/services_loader_dload.o
make[1]: Leaving directory `/home/csfera/dynload/dynload_build/services/loader/current'
make -r -C services/loader/current /home/csfera/dynload/dynload_install/lib/crtbeginS.o
make[1]: Entering directory `/home/csfera/dynload/dynload_build/services/loader/current'
powerpc-8548-eabi-gcc -Wp,-MD,crtbeginS.tmp -I/home/csfera/dynload/dynload_install/include -I/opt/ecos/openetech/packages/services/loader/current -I/opt/ecos/openetech/packages/services/loader/current/src -I/opt/ecos/openetech/packages/services/loader/current/tests -I. -g0 -Wall -finhibit-size-directive -fno-inline-functions -fno-exceptions -c -o /home/csfera/dynload/dynload_install/lib/crtbeginS.o /opt/ecos/openetech/packages/services/loader/current/src/crtbeginS.c
make[1]: Leaving directory `/home/csfera/dynload/dynload_build/services/loader/current'
make -r -C services/loader/current /home/csfera/dynload/dynload_install/lib/crtendS.o
make[1]: Entering directory `/home/csfera/dynload/dynload_build/services/loader/current'
powerpc-8548-eabi-gcc -Wp,-MD,crtendS.tmp -I/home/csfera/dynload/dynload_install/include -I/opt/ecos/openetech/packages/services/loader/current -I/opt/ecos/openetech/packages/services/loader/current/src -I/opt/ecos/openetech/packages/services/loader/current/tests -I. -g0 -Wall -finhibit-size-directive -fno-inline-functions -fno-exceptions -c -o /home/csfera/dynload/dynload_install/lib/crtendS.o /opt/ecos/openetech/packages/services/loader/current/src/crtendS.c
make[1]: Leaving directory `/home/csfera/dynload/dynload_build/services/loader/current'
make -r -C services/loader/current /home/csfera/dynload/dynload_install/lib/libdlforce.so
make[1]: Entering directory `/home/csfera/dynload/dynload_build/services/loader/current'
powerpc-8548-eabi-gcc -finline-limit=7000 -msoft-float -mno-hard-dfp -Wa,-me500x2 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -Wp,-MD,dlforce.tmp -I/home/csfera/dynload/dynload_install/include -I/opt/ecos/openetech/packages/services/loader/current -I/opt/ecos/openetech/packages/services/loader/current/src -I/opt/ecos/openetech/packages/services/loader/current/tests -I. -shared -c -o src/dlforce.o /opt/ecos/openetech/packages/services/loader/current/src/dlforce.c
cc1: warning: command line option '-Woverloaded-virtual' is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
powerpc-8548-eabi-gcc -g -nostdlib -L/home/csfera/dynload/dynload_install/lib -shared -Tdynamic.ld -o /home/csfera/dynload/dynload_install/lib/libdlforce.so /home/csfera/dynload/dynload_install/lib/crtbeginS.o src/dlforce.o /home/csfera/dynload/dynload_install/lib/crtendS.o
/opt/compilers/8548/lib/gcc/powerpc-8548-eabi/4.6.2/../../../../powerpc-8548-eabi/bin/ld: read-only segment has dynamic relocations.
make[1]: Leaving directory `/home/csfera/dynload/dynload_build/services/loader/current'
collect2: ld returned 1 exit status
make: Leaving directory `/home/csfera/dynload/dynload_build'
make[1]: *** [/home/csfera/dynload/dynload_install/lib/libdlforce.so] Error 1
make: *** [build] Error 2
Any suggestions?
Ferenc