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]

Re: Q: gcc with binutils ld? (kind of summary)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 15 August 2001 15:59, Nick Clifton wrote:
> Hi Heiko,
>
> > Hmm ... I did not find an entry for the path to the ld binary. I
> > already put the binutils path in front of /usr/ccs/bin but gcc still
> > uses Sun ld. Here is my specs file; what shall I change?
>
> In theory the entry to change is this one:
> > *linker:
> > collect2
>
> Since however, gcc is using collect2 you may not want to change this.
> (Or you may want to jsut recompile collect2 and change its default
> linker....).
>

Anyway, I am going to give it a try with a local specs file (as Alan Modra 
stated), changing collect2 to the binutils ld path tomorrow ...

I am also going to try 

- -Xlinker -debug

as an option for collect2 in the specs file as Tom Rix stated.

[snip]
> It is documented in the gcc/doc/invoke.texi.  Depending upon how old
> your gcc sources are you may have to search around for this file, or
> the 'Spec Files' node may be missing entirely.

I had a look into the 2.95.3 of invoke.texi. Nothing. But calling

collect2 --help

seems to be quite useful. I am going to have a look at it ...

Thanks for everyone answering.

Maybe then I just can use '-fini' and '-init' without further consideration 
how it is passed to the underlying assember and/or OS (for defining 
entry/exit points for a shared object).

- -- 
Heiko Nardmann (Dipl.-Ing.), h.nardmann@secunet.de, Software Development
secunet Security Networks AG - Sicherheit in Netzwerken (www.secunet.de),
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax  : +49 271 48950-50
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7epzkpm53PRScYygRAuChAJ9N42iA5hdB0akwhQgsFmkQcMsaigCfaNQE
yTYyJxUS2TdCO2ife6e6Um8=
=KGbJ
-----END PGP SIGNATURE-----


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