1/1
about or32-uclinux-ld
by Unknown on Jan 8, 2004 |
Not available! | ||
Hi all,
I downloaded the prebuilt tool chain. I can use or32-uclinux-gcc to
build object file. When I use or32-uclinux-ld to link the obj file I got the
problem like that
Stephen@stephen ~/or32-test
$ or32-uclinux-ld -o mul /opt/or32-uclinux/lib/crt0.o mul.o -lc
mul.o: In function `_main':
mul.o(.text+0x434): undefined reference to `_report'
/opt/or32-uclinux/or32-uclinux/lib/libc.a(ultostr.o): In function
`___ultostr':
ultostr.o(.text+0x54): undefined reference to `___umodsi3'
ultostr.o(.text+0x64): undefined reference to `___udivsi3'
/opt/or32-uclinux/or32-uclinux/lib/libc.a(dtostr.o): In function
`___dtostr':
dtostr.o(.text+0x80): undefined reference to `___nedf2'
dtostr.o(.text+0x234): undefined reference to `___eqdf2'
dtostr.o(.text+0x268): undefined reference to `_(float, int, long long,
double,
float, short, int)'
dtostr.o(.text+0x274): undefined reference to `___floatsidf'
dtostr.o(.text+0x294): undefined reference to `___subdf3'
dtostr.o(.text+0x2b8): undefined reference to `___muldf3'
dtostr.o(.text+0x6fc): undefined reference to `___ltdf2'
dtostr.o(.text+0x72c): undefined reference to `___muldf3'
dtostr.o(.text+0x748): undefined reference to `___eqdf2'
dtostr.o(.text+0x7b4): undefined reference to `___muldf3'
dtostr.o(.text+0x7f0): undefined reference to `___ltdf2'
dtostr.o(.text+0x858): undefined reference to `___muldf3'
dtostr.o(.text+0x87c): undefined reference to `___ltdf2'
dtostr.o(.text+0x8cc): undefined reference to `___gedf2'
dtostr.o(.text+0x90c): undefined reference to `___divdf3'
dtostr.o(.text+0x938): undefined reference to `___muldf3'
dtostr.o(.text+0x95c): undefined reference to `___divdf3'
dtostr.o(.text+0x980): undefined reference to `___gedf2'
dtostr.o(.text+0x9b0): undefined reference to `___divdf3'
dtostr.o(.text+0x9d0): undefined reference to `___negdf2'
It seems that there are some problem on the file of libc.a. Anyone
encountered problem like that? Can anyone give me idea how to fix it?
Thank you very much.
Best Regards,
Stephen
|
about or32-uclinux-ld
by Unknown on Jan 8, 2004 |
Not available! | ||
* whli_interqos@yahoo.com.hk (whli_interqos@yahoo.com.hk) wrote:
Hi all,
I downloaded the prebuilt tool chain. I can use or32-uclinux-gcc to build object file. When I use or32-uclinux-ld to link the obj file I got the problem like that i'm pretty sure that at least ___umodsi3 and ___udivsi3 are implemented in libgcc.a library. if you are using gcc 3.2.3 it should be in: /opt/lib/gcc-lib/or32-elf/3.2.3 (substitute 'elf' with apropriate target and 3.2.3 with your compiler version) hope that it helps! have fun, p. |
about or32-uclinux-ld
by Unknown on Jan 8, 2004 |
Not available! | ||
Hi Matjaz Breskvar,
Yes, I can find the libgcc.a in the directory. But Can you tell me how to use it when I use the linker.
Thank you very much.
Regards,
Stephen
Matjaz Breskvar phoenix@opencores.org> wrote:
* whli_interqos@yahoo.com.hk (whli_interqos@yahoo.com.hk) wrote:
Hi all,
i'm pretty sure that at least ___umodsi3 and ___udivsi3 are implemented in
libgcc.a library. if you are using gcc 3.2.3 it should be in:
/opt/lib/gcc-lib/or32-elf/3.2.3
(substitute 'elf' with apropriate target and 3.2.3 with your
compiler version)
hope that it helps!
have fun,
p.
_______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc
Shining Friends¡B¦n¤ß¦n³ø¡B·³¤ë¦pºq...
®öº©¹aÃn ±¡¤ß³sô
http://ringtone.yahoo.com.hk/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.opencores.org/forums/openrisc/attachments/20040108/1891c9a5/attachment.htm
I downloaded the prebuilt tool chain. I can use or32-uclinux-gcc to build object file. When I use or32-uclinux-ld to link the obj file I got the problem like that |
about or32-uclinux-ld
by Unknown on Jan 8, 2004 |
Not available! | ||
* li stephen (whli_interqos@yahoo.com.hk) wrote:
Hi Matjaz Breskvar,
Yes, I can find the libgcc.a in the directory. But Can you tell me how to use it when I use the linker. you had: or32-uclinux-ld -o mul /opt/or32-uclinux/lib/crt0.o mul.o -lc (here you were linking also with libc) you could just do: or32-uclinux-ld -o mul /opt/or32-uclinux/lib/crt0.o mul.o \ -L/opt/lib/gcc-lib/or32-elf/3.2.3 -lgcc -lc
Thank you very much.
you welcome. regards, p. |
about or32-uclinux-ld
by Unknown on Jan 8, 2004 |
Not available! | ||
* Matjaz Breskvar (phoenix@opencores.org) wrote:
* li stephen (whli_interqos@yahoo.com.hk) wrote:
> Hi Matjaz Breskvar,
> Yes, I can find the libgcc.a in the directory. But Can you tell > me how to use it when I use the linker. > you had: or32-uclinux-ld -o mul /opt/or32-uclinux/lib/crt0.o mul.o -lc (here you were linking also with libc) you could just do: or32-uclinux-ld -o mul /opt/or32-uclinux/lib/crt0.o mul.o \ -L/opt/lib/gcc-lib/or32-elf/3.2.3 -lgcc -lc well in your case or32-elf is probably or32-uclinux: or32-uclinux-ld -o mul /opt/or32-uclinux/lib/crt0.o mul.o \ -L/opt/lib/gcc-lib/or32-uclinux/3.2.3 -lgcc -lc regards, p. |
1/1