Helge Deller a écrit :
On Thursday 31 May 2007, [EMAIL PROTECTED] wrote:
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.

"nscd" crashes for me the same way as "portmap".
I haven't checked yet, but maybe it's using -pie as well ?

Helge


This problem is indeed related to the pie. Same kind of crash before the main function start.

I'll start a glibc build and check the flags.

        seb


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to