[Bug ld/6753] -L order is not respected when searching for -l, but -T fixes it

2008-07-22 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2008-07-22 15:05 --- Please provide a SMALL STANDALONE testcase. -- What|Removed |Added CC|

[Bug ld/6747] regression: ld adds -fpic private flag

2008-07-22 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2008-07-22 14:56 --- Fixed by http://sourceware.org/ml/binutils/2008-07/msg00237.html -- What|Removed |Added

Re: linker problem ? help needed !!!

2008-07-22 Thread kanda1979
Hi Nick, 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

Re: linker problem ? help needed !!!

2008-07-22 Thread Nick Clifton
Hi Navi, I want to compile multiple files C and C++ and link with gcc. Is there any way. Presumably you mean using the @ linker command line option to avoid having problems with excessively long command lines ? Then the answer is yes. Like this: gcc -c foo.c bar.cc echo foo.o bar.o

Re: linker problem ? help needed !!!

2008-07-22 Thread kanda1979
Hi Nick, Thank you very much. Your solution is wonderful. I got desired results. I made my development scripts simpler. Can you give me one more suggestion. I want to compile multiple files C and C++ and link with gcc. Is there any way. Thanks, Navi - Original Message - From: Ni

Re: linker problem ? help needed !!!

2008-07-22 Thread Nick Clifton
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 c