Gentoo Archives: gentoo-dev

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] linking with ld or gcc?
Date: Sun, 05 Nov 2006 15:52:24
Message-Id: 1162741650.8728.17.camel@localhost
1 Hello.
2
3 Short question: What shall we use to link libraries/programs: gcc or ld?
4 Why?
5
6 A bit longer story: I have a problem during linking of wepattack on
7 amd64 systems. Linking stage issues warning:
8
9 $ x86_64-pc-linux-gnu-ld -o wepattack wepattack.o rc4.o wepfilter.o
10 log.o modes.o misc.o verify.o keygen.o -lpcap -lz -lcrypto
11 ld: warning: cannot find entry symbol _start; defaulting to
12 0000000000400e10
13
14 And resulted file is not executable. In google I found the most of
15 tutorials/howtos suggest to link with gcc but some programs still use
16 LD. From ld man page it's clear that it should link the program but this
17 is not working. So what is the right way to do that? Why?
18
19 Thank you for your time,
20 Peter.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] linking with ld or gcc? "Harald van Dijk" <truedfx@g.o>