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.



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