This is the mail archive of the binutils@sourceware.cygnus.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]

Re: making ld2


> Date: Thu, 4 May 2000 03:52:33 -0700 (PDT)
> From: PIYUSH GUPTA <piyush_g@yahoo.com>
> 
> Hi,
> 
>    I am compiling an application on host Solaris,
> and target powerpc-elf.
>    For linking, collect2 is invoked which invokes
> powerpc-elf-ld. It gives errors like :-
> 
> abc.o(.data+0x04): undefined reference to `global
> constructors keyed to ABC::f1(void)'

I'm not completely sure that powerpc-elf is a supported target.
Normally people use powerpc-eabi.  powerpc-elf is another name
for powerpc-sysv4.

>   Please give me some idea as to why such errors
> are there; even when .o file with definition of
> ABC::f1() is linked.

I can't give you any help unless you can tell me:
- what version binutils
- what version gcc

It would also help if you could provide a short test case.

>    Another Question :-
> What is ld2 and how to compile ld2 using binutils ?

I have no idea.  I've never heard of it.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

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