NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-arm/45520: -pie broken, breaks some pkgsrc builds.



The following reply was made to PR port-arm/45520; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: Ignatios Souvatzis <presse%ycm-bonn.de@localhost>, 
gnats-bugs%NetBSD.org@localhost
Cc: port-arm-maintainer%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
        netbsd-bugs%netbsd.org@localhost, is%netbsd.org@localhost
Subject: Re: port-arm/45520: -pie broken, breaks some pkgsrc builds.
Date: Wed, 26 Oct 2011 11:29:51 -0400

 On Oct 26,  9:52am, presse%ycm-bonn.de@localhost (Ignatios Souvatzis) wrote:
 -- Subject: Re: port-arm/45520: -pie broken, breaks some pkgsrc builds.
 
 | No change:
 | 
 | marie hello !% cc -pie -fpie -o hello hello.c 
 | marie hello !% ./hello
 | Abort
 | marie hello !% cc -pie -fPIE -o hello hello.c
 | marie hello !% ./hello
 | Abort
 | e hello !% ktrace ./hello
 | Abort
 | marie hello !% kdump
 |   6181      1 ktrace   EMUL  "netbsd"
 |   6181      1 ktrace   RET   ktrace 0
 |   6181      1 ktrace   CALL  execve(0xeffff897,0xefffe794,0xefffe79c)
 |   6181      1 ktrace   NAMI  "./hello"
 |   6181      1 ktrace   NAMI  "/usr/libexec/ld.elf_so"
 | 
 
 pit:~ [11:26am] 4>cat > hello.c
 #include <stdio.h>
 
 int
 main(int argc, char *argv[])
 {
         printf("hello world\n");
        return 0;
 }
 pit:~ [11:27am] 5>cc -fpie -pie hello.c -o hello -lgcc_s
 pit:~ [11:27am] 6>./hello 
 hello world
 pit:~ [11:27am] 7>cc -fpie -pie hello.c -o hello 
 pit:~ [11:28am] 8>./hello
 hello world
 pit:~ [11:28am] 9>cc -pie hello.c -o hello
 pit:~ [11:28am] 10>./hello
 hello world
 pit:~ [11:28am] 11>file hello
 hello: ELF 32-bit LSB shared object, ARM, version 1, dynamically linked (uses 
shared libs), for NetBSD 5.99.40, not stripped
 pit:~ [11:28am] 12>
 
 christos
 


Home | Main Index | Thread Index | Old Index