From: Ralf Baechle <ralf@uni-koblenz.de>
To: renc stone <renwei@huawei.com>
Cc: linux-mips@oss.sgi.com, linux-mips@fnet.fr
Subject: Re: ld error " linking PIC files with non-PIC files "
Date: Mon, 19 Nov 2001 20:05:15 +1100 [thread overview]
Message-ID: <20011119200514.A26473@dea.linux-mips.net> (raw)
In-Reply-To: <000a01c170d0$e8662000$101d690a@huawei.com>; from renwei@huawei.com on Mon, Nov 19, 2001 at 04:05:09PM +0800
On Mon, Nov 19, 2001 at 04:05:09PM +0800, renc stone wrote:
> That's the same problem as mine.
> I try to use 64bit long long div& mod in one module,
> and find I miss some _divdi3 and something like that.
>
> when I try to link my module with libgcc.a, in my mipsel-glibc 2.95.3,
> the ld report the same thing.
>
> Does it mean I can't use 64bit div in module? How to get rid of this error?
Again, it's a grave mistake to mix pic and non-pic libraries.
To solve this you must either supply your own non-pic versions of the
routines in question or - and better - try to avoid them. In your case
take a look at <asm/div64.h> which supplies a 64-bit by 32-bit division
routine.
Ralf
next prev parent reply other threads:[~2001-11-19 10:05 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-19 1:57 Strange behavior of serial console under 2.4.9 H . J . Lu
2001-10-19 2:11 ` Bradley D. LaRonde
2001-10-19 2:11 ` Bradley D. LaRonde
2001-10-19 2:40 ` H . J . Lu
2001-10-19 13:26 ` Maciej W. Rozycki
2001-10-19 13:54 ` Bradley D. LaRonde
2001-10-19 13:54 ` Bradley D. LaRonde
2001-10-19 15:47 ` Ralf Baechle
2001-10-26 16:12 ` Backspace on Virtual Console causes oops Wayne Gowcher
2001-10-26 17:30 ` Gleb O. Raiko
2001-10-26 18:37 ` Wayne Gowcher
2001-10-29 8:26 ` Gleb O. Raiko
2001-10-29 18:21 ` James Simmons
2001-10-26 18:05 ` Pete Popov
2001-10-26 18:11 ` James Simmons
2001-11-13 20:09 ` ld error " linking PIC files with non-PIC files " Wayne Gowcher
2001-11-14 0:18 ` Ralf Baechle
[not found] ` <000a01c170d0$e8662000$101d690a@huawei.com>
2001-11-19 9:05 ` Ralf Baechle [this message]
2001-10-19 16:53 ` Strange behavior of serial console under 2.4.9 Jun Sun
2001-10-19 17:10 ` Bradley D. LaRonde
2001-10-19 17:10 ` Bradley D. LaRonde
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=20011119200514.A26473@dea.linux-mips.net \
--to=ralf@uni-koblenz.de \
--cc=linux-mips@fnet.fr \
--cc=linux-mips@oss.sgi.com \
--cc=renwei@huawei.com \
/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.