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: Tue, 22 Jul 2008 08:32:51 +0100
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Hi Navi,

Thanks for your prompt reply.

You're welcome. Please keep the CC line though as other people may be interested in this problem and its solution.

I have figured out the reason for the error.
Because the length of following command :
ld -v -T ../SRC\link.ld -o kernel.sys kernel.o ckernel.o Interrupts.o common.o 
idt.o isr.o stdio.o timer.o keyboad.o Kernelheap.o paging.o

[...]
But this is a temporary solution , what will i do when i have to link
> a lot of object files....(30 to 40 , for exmaple) , as the project
> grows in future.

Assuming that you are using a relatively recent version of the linker you can use the @<file> feature to put all of the object filenames into a single text file called <file>. eg:

echo kernel.o ckernel.o Interrupts.o common.o idt.o isr.o stdio.o timer.o keyboad.o Kernelheap.o paging.o > object_files

  ld -v -T ../SRC/link.ld -o kernel.sys @object_files

Cheers
  Nick





reply via email to

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