From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-17.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) by gnuweeb.org (Postfix) with ESMTPS id 12F1E7E2BC for ; Tue, 22 Mar 2022 17:31:07 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20210112 header.b=naptp6Dp; dkim-atps=neutral Received: by mail-lj1-f174.google.com with SMTP id h11so24947738ljb.2 for ; Tue, 22 Mar 2022 10:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zgcgyCIbWUTOoVOlIFHHmtoodCzEMkbLy9TNN/VAosg=; b=naptp6Dpy+85YfyC34kaFusYQmU1UYYJb1v0QokmAZ/OC156PjQKVkMdUdnZTFP3pI 9BLeqi/l8Szf7/x+NC+k5zOh+OaHrPK7DQVvX7j1X0ddioyzwX172ho1EW4NU6uncyhz 6hpurP0vHYti9dft5+IoDbp9NQlUEAYI2/a39CHcgLqA1RcSjTKP9PVz+JaUxurX1o/i dQcF73IPVJJzlJNzFBqx6dgxQ1rdRuNZpa95I9GNHyCn5URu2yNMY5c3IULf0R4b7K+L z/d9txrBGCP43dBC1XnY0T22CnvkA+y2QQlGIZczuT0NmwRQnJAl9O15bUplsLBFEHSZ QB2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zgcgyCIbWUTOoVOlIFHHmtoodCzEMkbLy9TNN/VAosg=; b=LWNmC6oEWy4Vm/ZNe5l/rLVFhGWVMeWmsbheBDij3xnfpYp3mdK8cCCoWMUsW8z0uo EgaJiDbn78ZSVAnYQJRlYfdT80zarxtgcs9Q0lhM/jomkFi7VP4fn+3J7Cbg4cCRW4wM yDwpi6IsiV1EM7EkCxAVMN+3mBuOLmzW5ZOhago0LSF+L9yNohTNDDY/5xc59O54Syw+ Ujun9JSkLMIGChYQYMyH2dKpsEYFYN9NEnWlLn5+8XsWq22CfWhXgT7lGHhLRt/D3jDM doatacIWEDIg7pRTbNQNaNc4xUZ9mVh7EcrodNk/vLEEOXAjBcG3ICT63amZ5rTibiDE Ae8Q== X-Gm-Message-State: AOAM533fCOWh7ZTlGiDyZIAMRRqDPu046+RPgG5MKNEYU2dQN5mLIMby MQUV1yugGSqRE8K0qBxWJEmw8NBRlcwuo1tQZT4YdA== X-Google-Smtp-Source: ABdhPJz+tT+vwRLT/un0YR41TNqqDOomNEbU0yM8lSArWPNncnylHvc5h3OSavrgElwizaqHJQOJc6w3u9B9x4FLPeg= X-Received: by 2002:a2e:8692:0:b0:249:a0b1:3c77 with SMTP id l18-20020a2e8692000000b00249a0b13c77mr93511lji.235.1647970265022; Tue, 22 Mar 2022 10:31:05 -0700 (PDT) MIME-Version: 1.0 References: <20220322102115.186179-1-ammarfaizi2@gnuweeb.org> <20220322102115.186179-3-ammarfaizi2@gnuweeb.org> <20220322172550.GL10306@1wt.eu> In-Reply-To: <20220322172550.GL10306@1wt.eu> From: Nick Desaulniers Date: Tue, 22 Mar 2022 10:30:53 -0700 Message-ID: Subject: Re: [RFC PATCH v2 2/8] tools/nolibc: Remove .global _start from the entry point code To: Willy Tarreau Cc: Linux Kernel Mailing List , "GNU/Weeb Mailing List" , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" List-Id: (Moving folks to bcc; check the lists if you're interested) On Tue, Mar 22, 2022 at 10:25 AM Willy Tarreau wrote: > > Hi Nick, > > On Tue, Mar 22, 2022 at 10:09:18AM -0700, Nick Desaulniers wrote: > > Then again, I'm not familiar with nolibc. > > No problem. The purpose is clearly *not* to implement a libc, but to have > something very lightweight that allows to compile trivial programs. A good > example of this is tools/testing/selftests/rcutorture/bin/mkinitrd.sh. I'm > personally using a tiny pre-init shell that I always package with my > kernels and that builds with them [1]. It will never do big things but > the balance between ease of use and coding effort is pretty good in my > experience. And I'm also careful not to make it complicated to use nor > to maintain, pragmatism is important and the effort should remain on the > program developer if some arbitration is needed. Neat, I bet that helps generate very small initrd! Got any quick size measurements? -- Thanks, ~Nick Desaulniers