From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5726 Path: news.gmane.org!not-for-mail From: "Weiming Zhao" Newsgroups: gmane.linux.lib.musl.general Subject: How to setup pre-allocated heap stack space? Date: Tue, 5 Aug 2014 13:26:51 -0700 Message-ID: <00a001cfb0eb$97409930$c5c1cb90$@codeaurora.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00A1_01CFB0B0.EAE23660" X-Trace: ger.gmane.org 1407270435 19018 80.91.229.3 (5 Aug 2014 20:27:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Aug 2014 20:27:15 +0000 (UTC) To: Original-X-From: musl-return-5731-gllmg-musl=m.gmane.org@lists.openwall.com Tue Aug 05 22:27:06 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XElK6-00028J-1X for gllmg-musl@plane.gmane.org; Tue, 05 Aug 2014 22:27:06 +0200 Original-Received: (qmail 5194 invoked by uid 550); 5 Aug 2014 20:27:04 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 5185 invoked from network); 5 Aug 2014 20:27:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-caf-smtp.dmz.codeaurora.org X-Spam-Level: * X-Spam-Status: No, score=1.2 required=2.0 tests=ALL_TRUSTED,BAYES_40, HTML_MESSAGE,TVD_RCVD_SINGLE autolearn=no version=3.3.1 X-Mailer: Microsoft Outlook 15.0 Thread-Index: Ac+w6ytzMOHlQZaCSoe0I1hPO8MIBA== Content-Language: en-us X-Virus-Scanned: ClamAV using ClamSMTP Xref: news.gmane.org gmane.linux.lib.musl.general:5726 Archived-At: This is a multipart message in MIME format. ------=_NextPart_000_00A1_01CFB0B0.EAE23660 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, In musl's crt1.c , I want to let libc to use preallocated heap and stack. I can set the SP register in crt1. But how do I specify the base address of heap? So malloc will starts from there. Thanks, Weiming ------=_NextPart_000_00A1_01CFB0B0.EAE23660 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

In = musl’s crt1.c , I want to let libc to use preallocated heap and = stack.

I can set the SP register in = crt1. But how do I specify the base address of heap? So malloc will = starts from there.

 

Thanks,

Weiming

------=_NextPart_000_00A1_01CFB0B0.EAE23660--