From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12255 Path: news.gmane.org!.POSTED!not-for-mail From: Nicholas Wilson Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] split __libc_start_main.c into two files (Wasm) Date: Sat, 16 Dec 2017 13:21:39 +0000 Message-ID: References: <20171207170356.GX1627@brightrain.aerifal.cx> <20171215041925.GG1627@brightrain.aerifal.cx> <20171215123331.GG15263@port70.net> <20171215172353.GL1627@brightrain.aerifal.cx> ,<20171215175657.GM1627@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1513430518 22412 195.159.176.226 (16 Dec 2017 13:21:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Dec 2017 13:21:58 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-12271-gllmg-musl=m.gmane.org@lists.openwall.com Sat Dec 16 14:21:55 2017 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 1eQCPa-0005VU-C4 for gllmg-musl@m.gmane.org; Sat, 16 Dec 2017 14:21:54 +0100 Original-Received: (qmail 9331 invoked by uid 550); 16 Dec 2017 13:21:59 -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 9310 invoked from network); 16 Dec 2017 13:21:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realvnc.onmicrosoft.com; s=selector1-realvnc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=tvW1+EPXcuvDZERgw5w6HZPSrkH016P1S3GTvzkio4E=; b=Twg2/CmRgU/Ar51dXcZlxLImye4n4BS4iSg+10ZB3QQpcAm5kWwmtAkwphWLIEyZQ1Zev44d7QWmbVM/FqVVpbkkW2ZVgGmFY3/ncBdJsBDuiunDxv6UKhy2JJhS2iIBpvo3k88OyTQ7BN+3i+aWqSmcPYVpcYbQfAxDyaauH+I= Thread-Topic: [musl] [PATCH] split __libc_start_main.c into two files (Wasm) Thread-Index: AQHTb2pBP8VsOCdulkepcQ6wgWaD9qM4G+cAgAu9DICAAHLZ/4AAFzSAgAAC5HOAAE48gIAAAoPOgAAGuoCAAUMpeA== In-Reply-To: <20171215175657.GM1627@brightrain.aerifal.cx> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=nicholas.wilson@realvnc.com; x-originating-ip: [81.96.233.38] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0502MB3885;6:te/dHrBoQeqrO78/jKPA31i6icXfzh4j5wUfz/wsKZycw/clXdVQ1wfj6Is1YtPu+zNYU3mUy9cz+Tt3/8Y+bDJsnINpO7og2kh9GxKy2nC6AZUZVk+Zl3IdSvkGVyLFqypLQwtGw3QQcFSuf0aXYhFZyziSY9jnh3Zz0cWc8Au3LyLBIXPEWAX7/xTG69mKZ358vAPXtEIKdBL+dWp8fhdGbdhjCMIgvl0jmJZytRWk/jw9jJ+oN1mRZLE9Zl182xd0Dut05pT6hVJkMt9LgxQ5+sjewO+WMugebw0ngjTBjcMdJEdenLldF2fO6GtuSRs5bGR2yAODRvokMhwvGs/QyPufskmQR6SgY9vdOuw=;5:aahiZB+zI6v8m3+nK9v0pnVaPMGCwxOh7lrBx4hD3BZU+/P7ry4R/cKtgdLaF18OXvkwR4/aj9uy2ZvxKAnIC13Lr+clK4LiZW6Z4mxRRwcyTXSCfQv1IpU0iSObJRF2XxloUdQhU6h1e0o/i/b9l0ARMJAOPnfg82wv9MX12Ic=;24:RC6L0l78jpfWranyAt5owRdjwMTRNolyVpd+YCfHFaIY2zIpgpNj9kJ/ZGz+ihRk7ug4FgqEtk4dpOYm/qf872qwJdmztn8btQmalU04Q3Y=;7:TKEzK6rdNfwatZwE/c6gvHTqCU3TazVE0IGqBA4swjeajcsUWpDj/Loebj9MPbYOLSnkzhw9ynjuA6mvcDHQsr7oNQko j/R9H6qR0FW/DXXUn8afwDe+W6WgcRRFs9FFSmAmK+9KUJIuXCy23LCh/4iVaSJecBqUl3yQbVKQnzUxVBv7ZCCSrSeX2B8Zif x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 853b2829-b680-4939-de99-08d54487f146 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4603075)(4627115)(201702281549075)(2017052603307);SRVR:VI1PR0502MB3885; x-ms-traffictypediagnostic: VI1PR0502MB3885: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(3231023)(3002001)(10201501046)(93006095)(93001095)(6041248)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(20161123562025)(2016111802025)(6072148)(6043046)(201708071742011);SRVR:VI1PR0502MB3885;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR0502MB3885; x-forefront-prvs: 0523CF0711 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(346002)(39840400004)(376002)(396003)(199004)(189003)(24454002)(33656002)(6916009)(86362001)(3660700001)(3280700002)(2950100002)(68736007)(14454004)(97736004)(74316002)(7736002)(8936002)(316002)(9686003)(478600001)(2501003)(305945005)(5660300001)(5250100002)(6436002)(2906002)(229853002)(55016002)(53936002)(5640700003)(2900100001)(93886005)(6246003)(53546011)(76176011)(7696005)(59450400001)(6506007)(105586002)(1730700003)(81156014)(25786009)(81166006)(3846002)(102836003)(99286004)(66066001)(6116002)(106356001)(2351001)(8676002)(99114002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0502MB3885;H:VI1PR0502MB3885.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: realvnc.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM X-MS-Exchange-CrossTenant-Network-Message-Id: 853b2829-b680-4939-de99-08d54487f146 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Dec 2017 13:21:39.9520 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9ad766d3-c6a5-4458-8c58-244e7c118728 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3885 X-OriginatorOrg: realvnc.com Xref: news.gmane.org gmane.linux.lib.musl.general:12255 Archived-At: On 15 December 2017 17:56, Rich Felker wrote: > Adding a new interface boundary/contract for a particular arch _is_ a > big request, one of the biggest types. It's a permanent added > constraint that has to be considered in future modifications to the > code. Probably the only bigger type is adding a new public (to > application) interface boundary/contract. Thanks for clarifying, I understand now. In our fork/branch, we will have t= o call *something* on Wasm, since initialisation is different to ELF and th= e default crt1.c doesn't really work for non-ELF archs. For your information, what we'll do is call __init_libc directly from crt/w= asm/crt1.c, since for the time being we need to do that to keep the prototy= pe working. It would be nice if that were to become an accepted internal Mu= sl interface, so that becomes "legal". (I have though reverted the split into two files of __libc_start_main.c.) Nick=