* dietlibc nash pic/non-pic errors
@ 2004-02-03 21:32 Shaun Savage
2004-02-03 23:00 ` Johannes Stezenbach
0 siblings, 1 reply; 2+ messages in thread
From: Shaun Savage @ 2004-02-03 21:32 UTC (permalink / raw)
To: linux-mips
Hi
I am want to cross compile dietlibc and nash(mkinitrd).
I can cross compile static mipsel dietlibc libs
but when I try to link it with nash I get
the pic and non-pic error, can't merge
I have gotten QPDF, SD on linux, busybox and ulibc cross compiled and
working, so I sort of know what I am doing.
I am using Maciej toolchain
any help?
shaun
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: dietlibc nash pic/non-pic errors
2004-02-03 21:32 dietlibc nash pic/non-pic errors Shaun Savage
@ 2004-02-03 23:00 ` Johannes Stezenbach
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Stezenbach @ 2004-02-03 23:00 UTC (permalink / raw)
To: linux-mips
Shaun Savage wrote:
> I am want to cross compile dietlibc and nash(mkinitrd).
>
> I can cross compile static mipsel dietlibc libs
> but when I try to link it with nash I get
> the pic and non-pic error, can't merge
>
> I have gotten QPDF, SD on linux, busybox and ulibc cross compiled and
> working, so I sort of know what I am doing.
>
> I am using Maciej toolchain
- check that everything is compiled with '-fno-pic -mno-abicalls -G 0'
- you must have either a non-pic libgcc or make sure your programs
don't need libgcc
The standard configuration of gcc for mipsel-linux creates a
PIC libgcc only, so if you need a non-pic libgcc you must hack
the gcc configuration and rebuild your toolchain.
Or alternatively you can compile dietlibc as PIC
(remove '-fno-pic -mno-abicalls' from mips/Makefile.add
and diet.c).
HTH,
Johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-03 22:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-03 21:32 dietlibc nash pic/non-pic errors Shaun Savage
2004-02-03 23:00 ` Johannes Stezenbach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox