how to invoke ld without gcc

Ramana Radhakrishnan ramana.radhakrishnan@codito.com
Thu May 27 08:04:00 GMT 2004


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




More information about the Binutils mailing list