[Top] [All Lists]

GCC 4.4.2(mips) with -mplt option

To: linux-mips <>
Subject: GCC 4.4.2(mips) with -mplt option
From: YD <>
Date: Fri, 29 Jan 2010 19:27:53 +0900
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=+qnQH6aYtgzzPAlldCRtjAxyAkvm54/4OIaqI7iQRcQ=; b=A7pcf3YcufAbd8sUySIx7LuAgkHX7FYebW+K4UXmShZaNyqaCOOPqdua4IXAhdfH9H dmtifFOa493aBP510vwyYzC0OJzu4oeh8A0g3DgW3Gp6z2q5QicagrUaxA4CuIj1J7dx qu03vVTYE2zhBVq3jrxsVIaN+6YI+cUTGQIJQ=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Bx34UVQLh1XIXN0H0TUlZC6p8051MFlosekTcu6uJpZ0hlg4oN167y7B7aoFiNSNJF SJHBApC7TkkPMQd2U8OEkvxXxKmBVxJdsr348xDaoqETfSjquEAmPoNGtcQRRlUtaqRV Mwo6eA2UxJfVQvIGizSBQIPKkrnDk8rrKaE2s=

I have built the toolchain using the buildroot ( GCC 4.4.2 with
uClibc- )

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


<Prev in Thread] Current Thread [Next in Thread>