This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Using linker script instead of library in Gold
- From: Aleksandar Simeonov <Aleksandar dot Simeonov at RT-RK dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: binutils <binutils at sourceware dot org>, rich at mips dot com
- Date: Thu, 14 Jul 2011 10:04:05 +0200
- Subject: Re: Using linker script instead of library in Gold
- References: <4E1DAC56.5070105@RT-RK.com> <mcripr6gp51.fsf@coign.corp.google.com>
Yes, but still when I do linking I got error like:
../../mips-linux-gnu-ld.gold: Attempt to open /usr/lib/libc.so succeeded
../../mips-linux-gnu-ld.gold: warning: skipping incompatible
/usr/lib/libc.so while searching for c
../../mips-linux-gnu-ld.gold: error: cannot find -lc
Maybe I overlooked something?
Aleksandar
On 13/07/2011 17:46, Ian Lance Taylor wrote:
> Aleksandar Simeonov <Aleksandar.Simeonov@RT-RK.com> writes:
>
>> I have one short question today. Situation is as follow: instead of
>> having lib.so as shared library, on our Linux distribution we have ld
>> linker script:
>> /* GNU ld script
>> Use the shared library, but some functions are only in
>> the static library, so try that secondarily. */
>> OUTPUT_FORMAT(elf32-tradlittlemips)
>> GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED (
>> /lib/ld.so.1 ) )
>>
>> Is Gold capable of using it (for ld is enough to put -lc in command
>> line) and if yes, what command option should be used?
>
> This is normal on any glibc-based system. gold supports this without
> requiring any special options.
>
> Ian
>