On Thu, May 31, 2007 at 06:04:10PM +0200, [EMAIL PROTECTED] wrote:
>
> The main difference between the two is the -pie option at the link.
> If I remove this when linking the portmap is ok.
>
> Seems that collect2 or ld produced something really bad when given this
> option.
>
> Seb
>
In fact, any program linked using the -pie core dumps.
I tried the hello world program :
---------------
seb$ cat hello.c
#include <stdio.h>
int main( void ) {
printf("hello world !\n");
return 0;
}
seb$ gcc -fpie hello.c -o hello
seb$ ./hello
hello world !
seb$ gcc -pie -fpie hello.c -o hello
seb$ ./hello
Segmentation fault
seb$
---------------
I going to submit this problem to the bug tracker.
I'm not really sure it is related to portmap or binutils.
Seb
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]