www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - linker warning: creating a DT_TEXTREL in object

reply David Ferenczi <raggae ferenczi.net> writes:
I switched from dmd-0.140 to dmd-0.147 and from gcc-3.3.5 to gcc-3.4.4.

This change intoroduced some compiler warnings, as the following examples
show. 

(I use the build utility.)

1.
util/build src/kludge.d -debug -g -odobj/debug -ofkludgedebug -unittest -w

gcc obj/debug/src/application.o obj/debug/src/board.o obj/debug/src/game.o
obj/debug/src/kludge.o obj/debug/src/searchengine.o -o kludgedebug -g
-lphobos -lpthread -lm
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
warning: creating a DT_TEXTREL in object.

2. adding -cov flag
util/build src/kludge.d -debug -g -odobj/debug -ofkludgedebug -unittest -w
-cov

gcc obj/debug/src/application.o obj/debug/src/board.o obj/debug/src/game.o
obj/debug/src/kludge.o obj/debug/src/searchengine.o -o kludgedebug -g
-lphobos -lpthread -lm
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
warning: creating a DT_TEXTREL in object.
obj/debug/src/application.o:(.data+0x12c): undefined reference to
`_ModuleInfo_3std1c6stdlib'
obj/debug/src/application.o:(.data+0x130): undefined reference to
`_ModuleInfo_3std1c4time'
obj/debug/src/game.o:(.data+0x288): undefined reference to
`_ModuleInfo_3std1c4time'
collect2: ld returned 1 exit status
--- errorlevel 1


Could someone please help to get rid of these warnings?

Regards,
David Ferenczi
Feb 16 2006
parent David Ferenczi <raggae ferenczi.net> writes:
The DT_TEXTREL problem seems to be solved with dmd-0.148, but the coverage
problem stil exists.
 
Regards,
David Ferenczi
Feb 25 2006