This is the mail archive of the 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: Using linker script instead of library in Gold

Aleksandar Simeonov <> writes:

> Yes, but still when I do linking I got error like:
> ../../ Attempt to open /usr/lib/ succeeded
> ../../ warning: skipping incompatible
> /usr/lib/ while searching for c
> ../../ error: cannot find -lc
> Maybe I overlooked something?

It means that the OUTPUT_FORMAT string in your,
elf32-tradlittlemips, was not recognized or did not match the target
recognized for the .o files.  What string are you passing to the
Target_selector constructor?


> On 13/07/2011 17:46, Ian Lance Taylor wrote:
>> Aleksandar Simeonov <> writes:
>>> I have one short question today. Situation is as follow: instead of
>>> having 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/ /usr/lib/libc_nonshared.a  AS_NEEDED (
>>> /lib/ ) )
>>> 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

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