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: is%netbsd.org@localhost
Cc: gnats-bugs%NetBSD.org@localhost, port-arm-maintainer%netbsd.org@localhost, 
        gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: port-arm/45520: -pie broken, breaks some pkgsrc builds.
Date: Wed, 26 Oct 2011 15:16:45 -0400

 On Oct 26,  9:08pm, is%netbsd.org@localhost (is%netbsd.org@localhost) wrote:
 -- Subject: Re: port-arm/45520: -pie broken, breaks some pkgsrc builds.
 
 | On Wed, Oct 26, 2011 at 11:29:51AM -0400, Christos Zoulas wrote:
 | 
 | > 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>
 | 
 | Now - to identify what needs to be pulled up and whether this is 
 | possible - is this a changed kernel (exec stuff), ld.elf_so or gcc?
 
 Perhaps this is what you want:
 
 exec_elf.c:revision 1.13
 date: 2010/02/22 19:46:18;  author: drochner;  state: Exp;  lines: +15 -3
 branches:  1.13.2;
 Run binaries with ELF_TYPE==DYN at virtual address PAGE_SIZE rather
 than 0. This is still not the intent of PIE, but it allows them to
 run with VA 0 disabled.
 (The PAX_ASLR stuff which should deal with this needs work.)
 
 Or try sysctl -w vm.user_va0_disable=0
 
 christos
 


Home | Main Index | Thread Index | Old Index