This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld-gold, i386 without PIC and "/usr/bin/ld: -f may not be used without -shared"
- From: Alan Modra <amodra at gmail dot com>
- To: Jeffrey Walton <noloader at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Mon, 11 Jul 2016 19:54:13 +0930
- Subject: Re: ld-gold, i386 without PIC and "/usr/bin/ld: -f may not be used without -shared"
- Authentication-results: sourceware.org; auth=none
- References: <CAH8yC8mfyjm=Vz6HQ7P7COLNSCP3QCCkF9N5Exs22HYfi5PmoQ@mail.gmail.com>
On Wed, Jul 06, 2016 at 11:52:06AM -0400, Jeffrey Walton wrote:
> g++ -o cryptest.exe -DNDEBUG -g2 -O2 -march=native -pipe bench1.o
> bench2.o test.o validat1.o validat2.o validat3.o adhoc.o datatest.o
> regtest.o fipsalgt.o dlltest.o ./libcryptopp.a -pthread
> -Wl,-fuse-ld=gold
> /usr/bin/ld: -f may not be used without -shared
You're attempting to pass a gcc option to ld.
--
Alan Modra
Australia Development Lab, IBM