<div dir="ltr"><span class="gmail-"></span><br><span class="gmail-"></span><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
><br>
>     Have you loaded a symbol table for the base image that contains the 'printf'<br>
>     function.<br>
><br>
><br>
> I created it but symbols are all undefined. Is it OK?<br>
<br>
</span>Did you load the symbol table on to the target somehow?</blockquote><div><br></div><div>I quess I didn't load it.<br><br></div><div>At the moment I try to modify dl01 example to load dl-o1.o from filesystem.<br><br></div><div>My Makefile:<br>all:<br><span style="font-family:monospace,monospace"><font size="2">    i386-rtems4.11-gcc -B$(RTEMS_MAKEFILE_PATH)lib/ -specs bsp_specs -qrtems -mtune=i486 -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT filesystem.o -MD -MP -MF .deps/filesystem.Tpo <b>-c -o filesystem.o filesystem.c</b><br>    i386-rtems4.11-gcc -B../../../../../pc486/lib/ -specs bsp_specs -qrtems -DHAVE_CONFIG_H -I. -I../../../../../../../c/src/../../testsuites/libtests/dl01 -I..  -I../../../../../../../c/src/../../testsuites/libtests/../support/include   -mtune=i486 -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT dl-o1.o -MD -MP -MF .deps/dl-o1.Tpo <b>-c -o dl-o1.o dl-o1.c</b><br>    i386-rtems4.11-gcc -B../../../../../pc486/lib/ -specs bsp_specs -qrtems -DHAVE_CONFIG_H -I. -I../../../../../../../c/src/../../testsuites/libtests/dl01 -I..  -I../../../../../../../c/src/../../testsuites/libtests/../support/include   -mtune=i486 -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT init.o -MD -MP -MF .deps/init.Tpo <b>-c -o init.o init.c</b><br>    i386-rtems4.11-gcc -B../../../../../pc486/lib/ -specs bsp_specs -qrtems -DHAVE_CONFIG_H -I. -I../../../../../../../c/src/../../testsuites/libtests/dl01 -I..  -I../../../../../../../c/src/../../testsuites/libtests/../support/include   -mtune=i486 -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT dl-load.o -MD -MP -MF .deps/dl-load.Tpo <b>-c -o dl-load.o dl-load.c</b><br>    i386-rtems4.11-gcc -B../../../../../pc486/lib/ -specs bsp_specs -qrtems -mtune=i486 -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs   -Wl,-Ttext,0x00100000  -mtune=i486   <b>-o dl01.pre.exe init.o dl-load.o dl-o1.o filesystem.o</b><br>    mv dl01.pre.exe dl01.pre<br>    rtems-syms -e -c "-mtune=i486 -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs" <b>-o dl-sym.o dl01.pre</b><br>    i386-rtems4.11-gcc -B../../../../../pc486/lib/ -specs bsp_specs -qrtems -mtune=i486 -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs   -Wl,-Ttext,0x00100000  -mtune=i486 <b>-o dl01.exe init.o dl-load.o dl-o1.o dl-sym.o filesystem.o</b></font></span><br></div><div><br></div><div>filesystem.c contains functions to mount dos partition.<br></div><div><br></div><div>The output is:<br>dlopen failed: duplicate global symbol: rtems_main<br></div></div></div></div>