From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9544 Path: news.gmane.org!not-for-mail From: John Found Newsgroups: gmane.linux.lib.musl.general Subject: Memory management, how to protect some address space. Date: Thu, 10 Mar 2016 10:22:52 +0200 Message-ID: <20160310102252.f0401b98c0c333dd9dff9587@asm32.info> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1457598205 23984 80.91.229.3 (10 Mar 2016 08:23:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2016 08:23:25 +0000 (UTC) To: musl mainling list Original-X-From: musl-return-9557-gllmg-musl=m.gmane.org@lists.openwall.com Thu Mar 10 09:23:18 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1advsJ-0007oq-0z for gllmg-musl@m.gmane.org; Thu, 10 Mar 2016 09:23:15 +0100 Original-Received: (qmail 29993 invoked by uid 550); 10 Mar 2016 08:23:12 -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 29951 invoked from network); 10 Mar 2016 08:23:06 -0000 X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; x86_64-unknown-linux-gnu) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hemus.superhosting.bg X-AntiAbuse: Original Domain - lists.openwall.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - asm32.info X-Get-Message-Sender-Via: hemus.superhosting.bg: authenticated_id: johnfound@asm32.info X-Authenticated-Sender: hemus.superhosting.bg: johnfound@asm32.info X-Source: X-Source-Args: X-Source-Dir: Xref: news.gmane.org gmane.linux.lib.musl.general:9544 Archived-At: I am using 32bit MUSL for some of my projects, together with SQLite library compiled with MUSL as well. While running on 64 bit Linux, it sometimes allocates memory on addresses above 0xc0000000. But in my application this area (up to the end of the 4GB addressing space) is reserved for special purposes and should never be allocated. How to make MUSL to work this way? Should I recompile MUSL (other libraries) with such option or maybe there is some run-time way to make the same thing? Best Regards. -- http://fresh.flatassembler.net http://asm32.info John Found