From: Andreas Schwab <schwab@suse.de>
To: Benjamin Collar <benjamin.collar@siemens.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: PROBLEM: using _syscall4 to call sys_futex with -fPIC won't compile
Date: Mon, 05 Jul 2004 17:58:56 +0200 [thread overview]
Message-ID: <je1xjqigxr.fsf@sykes.suse.de> (raw)
In-Reply-To: <1089023944.8355.52.camel@mhpajh5c> (Benjamin Collar's message of "Mon, 05 Jul 2004 12:39:04 +0200")
Benjamin Collar <benjamin.collar@siemens.com> writes:
> Greetings
>
> [1.]
> If I use _syscall4 in order to call sys_futex and compile with -fPIC, I
> receive this compiler error:
> "can't find a register in class `BREG' while reloading `asm'"
Don't do that then.
> [2.]
> I'm using futexes in a project and I have to build a shared library;
> thus I need to use -fPIC when compiling. When doing so, I get the error
> mentioned in [1.].
Don't use kernel headers in user space. Use syscall(3) instead.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2004-07-05 15:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-05 10:39 Benjamin Collar
2004-07-05 15:58 ` Andreas Schwab [this message]
2004-07-05 16:17 ` Chris Friesen
2004-07-05 17:57 ` Andreas Schwab
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=je1xjqigxr.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=benjamin.collar@siemens.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®