From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12269 Path: news.gmane.org!.POSTED!not-for-mail From: ardi Newsgroups: gmane.linux.lib.musl.general Subject: Feature request: building musl in a portable way Date: Thu, 21 Dec 2017 17:25:31 +0100 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1513873430 17196 195.159.176.226 (21 Dec 2017 16:23:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Dec 2017 16:23:50 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12285-gllmg-musl=m.gmane.org@lists.openwall.com Thu Dec 21 17:23:46 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 1eS3dJ-00048A-Mi for gllmg-musl@m.gmane.org; Thu, 21 Dec 2017 17:23:45 +0100 Original-Received: (qmail 15813 invoked by uid 550); 21 Dec 2017 16:25:45 -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 15779 invoked from network); 21 Dec 2017 16:25:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=trGLRC9H9FuNxJ7tTLZ+GKi1n2s+uIT6+1UVemmHL2U=; b=f5KX4EwPF7ePeJZ++chMVPuw0VDAghg0P7FNvHQU4NFxaSqoxqfBPFofK4A/D5cd5Y /c/PR2bdtF/hYR36PMo4klbdkCB8a/hoKEXod3qYf6H1+5BwTL2CW6FFAiJMUFlAV9Q5 AkmFfM10fXSwAHCRorIenZDAjWKG18WFYIJyRFu1hzJGzEZfzJnlX7XN2kk6c3joMIxA l/KmS3+LVZ+IG+eOcjP677HaLRQ5p7SEgNPSNa5tkll6da50WK7pXpNdYi6D3z0RZfcN kMH4OixIPebhbJ0Q4dy/+e2qR3uOmTwkHyh/tcGst1/Dyfq0VIMzk5JjySTImK25pupj L2og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=trGLRC9H9FuNxJ7tTLZ+GKi1n2s+uIT6+1UVemmHL2U=; b=dWMcjBfdfDRykQx+0hBmcqN0codv0oQg7E28U5DBOysvoa/wFR6N7kXF6ADZ+nJRZG 4QFHAbGvAtlYg8C553JfJrVlKLUygWt0p/BsKpuWzAhMUeR7cCuVpe6XDM4EyxyzbvRP LU1O2rOJAYpR/rIGIBXww0pPikNw4fl2BcHK6ZOZHvGQNc5BrXphTHpq7aV4JLrkLDtb b5Qs+nMsLjOMHVbczmyjvo3PxEd8UcdxnxqFhcryj5jtCUR3Hzd0KfABIFkSNcAd1XMo wHzNkO0W3my26F1nQ5euG4LggziZgEKk5rlja71WHDRyRAvPgxbrhUH8rSlWlNOAcUbX Xy/g== X-Gm-Message-State: AKGB3mKxA3JjXGFcgeWovg4zx07x1qacELPYmk9eODNJT3ZPMYEtxsEq E271z2XUsuxPvYF94wr7mpXTWcbgd94RFHI9zu4= X-Google-Smtp-Source: ACJfBovm01yFAhVuq45SgHN/F9dUJuKX/l+LceMiU5XuqRfECoDr9OzAFJ5hpSbH5dADBZjBZ1sgxKcEKaRkH0PTwKE= X-Received: by 10.98.166.84 with SMTP id t81mr11065486pfe.196.1513873531600; Thu, 21 Dec 2017 08:25:31 -0800 (PST) Xref: news.gmane.org gmane.linux.lib.musl.general:12269 Archived-At: Hi, Related (and as an alternative) to a previous post I made asking about a way of isolating direct syscalls, I'm thinking about the possibility of building musl in a way where functions that need to perform syscalls aren't compiled, so this special compiled version of musl would have only the functions that don't make syscalls from themselves. The purpose is being able to run code in system other than Linux, replacing such functions by calls to the related functions of the system host (provided that functions follow POSIX requirements, of course). Obviously, I can get this feature by modifying musl, but I'd prefer not to modify it, because I'd like to be able to update musl to the last version easily, and if I use a modified/customized musl version, updating it would require merging, and possibly hard work. If there was some way of having a switch in the build system so that all functions that make syscalls are not compiled, I could use musl without modifying it. Maybe the most elegant way of doing this would be by tagging such functions with an special tag, like "__function_makes_syscall__" or whatever. But I'm not sure. Cheers, and thanks a lot, ardi