This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hai,
I tried to create a program which independant of all system and standard libs. When i modified and make the printf function, the linker says missing symbols ___umoddi3 and ___udivdi3. I globaly declared two functions with the name of the above and complied the program, it works fine now. However i want know what is the use of the above symbols, can you tell me what is the use of these functions or variables?
I herewith the attached the modified version of printf.c and the makefile i used. The makefile contains refer other files also.The included header files does not refer any external symbols. However if you require i am ready to send those files also.
Thanks & Regards,
Sam (samuelhard@yahoo.com)
Attachment:
Printf.c
Description: Printf.c
Kernel : Kernel.o CKernel.o Processor.o MemMan.o Heap.o Keyboard.o VGAText.o PIC.o Timer.o VGACursor.o PCI.o PCIEnum.o NumConvert.o Printf.o String.o Boot.bin OSLoader.bin ld -Ttext 0x19000 --oformat binary -o Kernel.bin Kernel.o CKernel.o Processor.o MemMan.o Heap.o Keyboard.o IO.o VGAText.o VGACursor.o PIC.o Timer.o PCI.o PCIEnum.o NumConvert.o Printf.o modf.o String.o Boot.bin: Boot/Boot.asm nasmw -i Includes -w+orphan-labels -o Boot.bin Boot/Boot.asm OSLoader.bin : Boot/OSLoader.asm nasmw -i Includes -w+orphan-labels -o OSLoader.bin Boot/OSLoader.asm Kernel.o : Kernel/Kernel.asm nasmw -i Includes -w+orphan-labels -f coff -o Kernel.o Kernel/Kernel.asm CKernel.o : Kernel/CKernel.c gcc -ffreestanding -c -I Includes -o CKernel.o Kernel/CKernel.c Processor.o : Kernel/Processor.asm nasmw -i Includes -w+orphan-labels -f coff -o Processor.o Kernel/Processor.asm MemMan.o : Kernel/MemMan.asm nasmw -i Includes -w+orphan-labels -f coff -o MemMan.o Kernel/MemMan.asm Heap.o : MemMan.o Kernel/Heap.c gcc -ffreestanding -c -I Includes -o Heap.o Kernel/Heap.c Keyboard.o : Kernel/Keyboard.asm nasmw -i Includes -w+orphan-labels -f coff -o Keyboard.o Kernel/Keyboard.asm VGACursor.o : IO.o Kernel/VGACursor.c gcc -ffreestanding -c -I Includes -o VGACursor.o Kernel/VGACursor.c VGAText.o : IO.o Kernel/VGAText.asm nasmw -i Includes -w+orphan-labels -f coff -o VGAText.o Kernel/VGAText.asm PIC.o : Kernel/PIC.asm nasmw -i Includes -w+orphan-labels -f coff -o PIC.o Kernel/PIC.asm IO.o : Kernel/IO.asm nasmw -i Includes -w+orphan-labels -f coff -o IO.o Kernel/IO.asm Timer.o : Kernel/Timer.asm nasmw -i Includes -w+orphan-labels -f coff -o Timer.o Kernel/Timer.asm PCI.o : IO.o Kernel/PCI.c gcc -ffreestanding -c -I Includes -o PCI.o Kernel/PCI.c PCIEnum.o : PCI.o Kernel/PCIEnum.c gcc -ffreestanding -c -I Includes -o PCIEnum.o Kernel/PCIEnum.c NumConvert.o : Src/NumConvert.c gcc -ffreestanding -c -I Includes -o NumConvert.o Src/NumConvert.c Printf.o : VGAText.o VGACursor.o modf.o Src/Printf.c gcc -ffreestanding -c -I Includes -o Printf.o Src/Printf.c modf.o : Src/modf.S as -I Includes -o modf.o Src/modf.S String.o : Src/String.c gcc -ffreestanding -c -I Includes -o String.o Src/String.c
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |