This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Re: how to invoke ld without gcc


K. Ahmed Feroz wrote:

Hi all,

I am facing the following errors while invoking the 'gnu linker'
directly without using the driver 'gcc':

<$> ./mips-elf-gcc -gdwarf-2 -T idt.ld <Test>.o -o <Test>.out

presumably because 'gcc' itself is arranging for all the required
libraries which I am failing to provide in the command line argument of
'ld'.

Please let me know the names of the required library, or if possible,
the complete command line arguments.



Take a look at the spec file format and the spec file for your gcc. That should give you all the required stuff about what
are the options gcc passes on to ld Or you can look at the gcc info pages about the spec file format.


cheers
Ramana



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]