> 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 [EMAIL PROTECTED] ----------------------------------------------------------- --- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] ---- For more information on Real-Time Linux see: http://www.rtlinux.org/~rtlinux/
Re: [rtl] Correction: unresolved symbol __divdi3
Luiz Gustavo Bizarro Mirisola Sun, 17 Jan 1999 03:45:28 -0800
- [rtl] Re: unresolved symbol __divdi3 Phil Wilshire
- Re: [rtl] Re: unresolved symbol __divdi... Jochen
- [rtl] Correction: unresolved symbol... Jochen
- Re: [rtl] Correction: unresolve... Luiz Gustavo Bizarro Mirisola
- [rtl] Re: unresolved symbol __divdi3 Joe Smith
- Re: [rtl] Re: unresolved symbol __d... Phil Wilshire