Re: ld error " linking PIC files with non-PIC files "

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux