[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [rtl] Correction: unresolved symbol __divdi3
> On Fre, 19 Nov 1999 Jochen wrote:
>
> >gcc -c module.c -o tmp.o
> >ld -r tmp.o -o module.o -lgcc
>
> Opps, this should read:
> gcc -r tmp.o -o module.o -lgcc
> ^^^
Jochen, could you explain it better, please?
1 - I didnt find a "-r" option in gcc manual (from FSF)
What does "-r" do?
I know "ld" have a "-r" option. Why can you use it for gcc?
> or even better
> gcc -nostdlib -static -r tmp.o -o tmp.o -lgcc
>
2- My module must use math functions sin and cos ( libm ),
I followed yours instructions and I built a module
of 950 Kb:
gcc -nostdlib -static -r -o rt_serbidir_sim.o
rt_serbidir_sim_obj.o rt_control_obj.o mime-crc/mime-crc.o -lm -lc
I did not need linking with lgcc.
Is this size really necessary? 950Kb for sin and cos?
Thanks in advance, sorry by my poor english...
-----------------------------------------------------------
Luiz Gustavo Bizarro Mirisola
MSc Student State University of Campinas, Brazil
Mestrando em Ciencia da Computacao - IC-Unicamp/LRV-IA-CTI
mirisola@dcc.unicamp.br
-----------------------------------------------------------
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/