bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linker problem ? help needed !!!


From: Nick Clifton
Subject: Re: linker problem ? help needed !!!
Date: Wed, 23 Jul 2008 12:43:50 +0100
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Hi Navi,

I am little confused by your suggestion,
how will I specify the file extension .o for each object file.

my present script is as follows :

C:\STOIC\DEVELOPMENT\BIN\nasm  -f  aout  .\asm\KERNEL.asm    -o 
C:\STOIC\DEVELOPMENT\OUTPUT\KERNEL.o
C:\STOIC\DEVELOPMENT\BIN\nasm  -f  aout  .\asm\IntDefs.asm   -o 
C:\STOIC\DEVELOPMENT\OUTPUT\IntDefs.o

gcc -c ckernel.c -o ../../OUTPUT\CKernel.o -I.\include gcc -c common.c -o ../../OUTPUT\Common.o -I.\include gcc -c IDT.c -o ../../OUTPUT\IDT.o -I.\include gcc -c isr.c -o ../../OUTPUT\isr.o -I.\include gcc -c stdio.c -o ../../OUTPUT\std.o -I.\include gcc -c GUI.c -o ../../OUTPUT\GUI.o -I.\include gcc -c Graphics.c -o ../../OUTPUT\Graphics.o -I.\include gcc -c Timer.c -o ../../OUTPUT\Timer.o -I.\include gcc -c keyboard.c -o ../../OUTPUT\keyboard.o -I.\include gcc -c KrnlHeap.c -o ../../OUTPUT\KrnlHeap.o -I.\include gcc -c Paging.c -o ../../OUTPUT\Paging.o -I.\include pause

Can u suggest the enhancements now.

How about:

C:\STOIC\DEVELOPMENT\BIN\nasm -f aout .\asm\KERNEL.asm -o C:\STOIC\DEVELOPMENT\OUTPUT\KERNEL.o C:\STOIC\DEVELOPMENT\BIN\nasm -f aout .\asm\IntDefs.asm -o C:\STOIC\DEVELOPMENT\OUTPUT\IntDefs.o

 gcc  -c  ckernel.c  -o  ../../OUTPUT\CKernel.o   -I.\include
 gcc  -c  common.c   -o  ../../OUTPUT\Common.o    -I.\include
 gcc  -c  IDT.c      -o  ../../OUTPUT\IDT.o       -I.\include
 gcc  -c  isr.c      -o  ../../OUTPUT\isr.o       -I.\include
 gcc  -c  stdio.c    -o  ../../OUTPUT\std.o       -I.\include
 gcc  -c  GUI.c      -o  ../../OUTPUT\GUI.o       -I.\include
 gcc  -c  Graphics.c -o  ../../OUTPUT\Graphics.o  -I.\include
 gcc  -c  Timer.c    -o  ../../OUTPUT\Timer.o     -I.\include
 gcc  -c  keyboard.c -o  ../../OUTPUT\keyboard.o  -I.\include
 gcc  -c  KrnlHeap.c -o  ../../OUTPUT\KrnlHeap.o  -I.\include
 gcc  -c  Paging.c   -o  ../../OUTPUT\Paging.o    -I.\include

 echo ../../OUTPUT\*.o > files

 gcc -Wl,@files -o stoic.exe

 pause


Cheers
  Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]