From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10782 Path: news.gmane.org!.POSTED!not-for-mail From: Shiz Newsgroups: gmane.linux.lib.musl.general Subject: Re: ldd not working on ET_EXEC executables Date: Fri, 9 Dec 2016 01:05:35 +0100 Message-ID: <5205ADA4-28EB-4285-BD8F-72D81A8E2B27@shiz.me> References: <20161206023325.GH1555@brightrain.aerifal.cx> <20161208224121.GP1555@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1481241951 30196 195.159.176.226 (9 Dec 2016 00:05:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2016 00:05:51 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10795-gllmg-musl=m.gmane.org@lists.openwall.com Fri Dec 09 01:05:47 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1cF8h8-0007DK-Eq for gllmg-musl@m.gmane.org; Fri, 09 Dec 2016 01:05:46 +0100 Original-Received: (qmail 20020 invoked by uid 550); 9 Dec 2016 00:05:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 19999 invoked from network); 9 Dec 2016 00:05:47 -0000 In-Reply-To: <20161208224121.GP1555@brightrain.aerifal.cx> X-Mailer: Apple Mail (2.3251) Xref: news.gmane.org gmane.linux.lib.musl.general:10782 Archived-At: > On 8 Dec 2016, at 23:41, Rich Felker wrote: >=20 > On Thu, Dec 08, 2016 at 04:30:42PM -0600, Laine Gholson wrote: >> You mean RANDMMAP? PaX's RANDMMAP feature ignoring the address your = requesting it (without MAP_FIXED) is perfectly valid, to quote POSIX: >> "When MAP_FIXED is not set, the implementation uses addr in an = implementation-defined manner to arrive at pa." >> mmap2(0x10000, 73728, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D = 0x1234abcd >=20 > It's _valid_, but it's a bad implementation choice; it makes it > impossible to request a particular range, which is necessary for > ldso/ldd to load non-PIE programs. Good. Position-dependent executables should not be used or supported. - Shiz=