| To: | YD <ydgoo9@gmail.com>, linux-mips <linux-mips@linux-mips.org> |
|---|---|
| Subject: | Re: GCC 4.4.2(mips) with -mplt option |
| From: | YD <ydgoo9@gmail.com> |
| Date: | Mon, 1 Feb 2010 13:38:42 +0900 |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=odC0p4YoMigSNBR0oOC34kx5Qno9xVqDZSn2Aivg3cg=; b=c//+Iq6pZlR/J9+18rPpPpmL2kQcTVit/LIDJqAZtKJg7uwg3khXAyKZV4gLTli4qQ v+lMDxsmeOCYN4GtjqADE9REGg+5okFYI/PWUrDBdws0i1oLB1fxwnSxu7Jc+4lN29rT BYWflLhvZOsqwda442PnJJOnJkF2wKKi+oQqw= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=CLSQoYjvWFJZlAzuevCGFhzqkkLqD2eU/oJSRj4RTeqIoAbdqrBL6035mcTFRcEAGm Vtft1IABds4BkIj9+LtAh9qVeY6PzC3V9Q+X7w7UeVbnln5gStI8ZZImLAHypUx/yTM1 giRMX2rI36SVp4VUDmpuFBj5DfsYWdUd1PkSw= |
| In-reply-to: | <20100129155303.GB3376@woodpecker.gentoo.org> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <38dc7fce1001290227v746c0a3dp4b3d81a58e73cf83@mail.gmail.com> <20100129155303.GB3376@woodpecker.gentoo.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
I saw the toolchain for MIPS from broadcom(GCC-4.2.0, uClibc-0.9.29)
does support -mplt option.
I assumed they patched some code for uClibc and GCC also.
I hope I could find some patch like it. but I did not find yet.
On Sat, Jan 30, 2010 at 12:53 AM, Zhang Le <r0bertz@gentoo.org> wrote:
> On 19:27 Fri 29 Jan , YD wrote:
>> Hello,
>>
>> I have built the toolchain using the buildroot ( GCC 4.4.2 with
>> uClibc-0.9.30.1 )
>
> I think you need to check if uClibc supports this feature.
> -mplt need support from libc, specifically dynamic loader, ld.so.
>
>>
>> Everything works well but when I compiled with -mplt option, always it
>> fails with Segmentation fault.
>>
>> I read some articles that with -mplt option, preformance will be 10%
>> highter than without plt option.
>>
>> I don't know why this fails everytime. please help me...
>>
>> #include <stdio.h>
>> int main()
>> {
>> printf("Hello world \n"); return 0;
>> }
>>
>> #mipsel-linux-gcc -o a a.c
>> Hello world
>> #mipsel-linux-gcc -mplt -o a a.c
>> Segmentation fault
>> #mipsel-linux-gcc -mplt -no-shared -o a a.c
>> Segmentation fault
>> #mipsel-linux-gcc -mplt -no-shared -mabicalls -o a a.c
>> Segmentation fault
>
> And -no-shared is actually not needed
> http://gcc.gnu.org/ml/gcc/2008-12/msg00010.html
>
> You should be able to verify this by 'mipsel-linux-gcc -v'
>
> Zhang, Le
>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Kernel crash in 2.6.32.6 / bcm1480 with 16k page size, Ralf Baechle |
|---|---|
| Next by Date: | Re: [PATCH 1/3] MIPS: AR7 whitespace hacking, Wu Zhangjin |
| Previous by Thread: | Re: Kernel crash in 2.6.32.6 / bcm1480 with 16k page size, Ralf Baechle |
| Next by Thread: | Re: [PATCH 1/3] MIPS: AR7 whitespace hacking, Wu Zhangjin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |