Package: binutils
Version: 2.17cvs20070426-8
Severity: normal

building the hello world program on hppa with the -pie option when linking
make the program segfault when ran.

For example :
---------------
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 don't know which package is the culprit.
However, I suspect the culprit is ld or the dynamic linker.



-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 2.6.18-4-parisc64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages binutils depends on:
ii  libc6                         2.5-9      GNU C Library: Shared libraries

binutils recommends no packages.

-- no debconf information


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

Reply via email to