From: Patrick McHardy <kaber@trash.net>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: [PATCH NFSIM]: Fix linker error on x86_64
Date: Thu, 06 Jan 2005 15:07:01 +0100 [thread overview]
Message-ID: <41DD4605.3090907@trash.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 644 bytes --]
Hi Rusty,
I have a couple of nfsim fixes for x86_64. Please review and apply the
correct ones.
Thanks,
Patrick
This patch fixes a linker error on x86_64 when linking core/fakesockopt.o:
gcc -Wmissing-prototypes -Wstrict-prototypes -Wunused -Wall -g -Wa,-W
-shared -Wl,-soname,fakesockopt.so.1 -nostdlib -ldl \
-o core/fakesockopt.so.1.0 core/fakesockopt.o core/utils.o
/usr/bin/ld: core/fakesockopt.o: relocation R_X86_64_32S can not be used
when making a shared object; recompile with -fPIC
core/fakesockopt.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [core/fakesockopt.so.1.0] Error 1
[-- Attachment #2: 1.diff --]
[-- Type: text/x-patch, Size: 494 bytes --]
Index: Makefile.in
===================================================================
--- Makefile.in (revision 3578)
+++ Makefile.in (working copy)
@@ -58,6 +58,12 @@
-o $@ $^
ln -sf core/fakesockopt.so.1.0 ./
+core/fakesockopt.o:
+ $(CC) $(CFLAGS) -c -fPIC core/fakesockopt.c -o core/fakesockopt.o
+
+core/utils.o:
+ $(CC) $(CFLAGS) -c -fPIC core/utils.c -o core/utils.o
+
core/usage.o: core/usage.c
core/usage.c: $(USAGE_SOURCES) doc/gen-usage
doc/gen-usage $(USAGE_SOURCES) >$@
reply other threads:[~2005-01-06 14:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41DD4605.3090907@trash.net \
--to=kaber@trash.net \
--cc=netfilter-devel@lists.netfilter.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.