Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp892848rdb; Sat, 7 Oct 2023 03:38:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2LIVwwpNFC3dxwFtLzGJ3pFrmV3ZRHsdZt8UgydvOu3AM5CO0HYOlyHYkPf4h6JhT/sjf X-Received: by 2002:a05:6e02:1c4d:b0:34b:ac73:eb97 with SMTP id d13-20020a056e021c4d00b0034bac73eb97mr13562872ilg.14.1696675084039; Sat, 07 Oct 2023 03:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696675084; cv=none; d=google.com; s=arc-20160816; b=wl5TLwEB1837/B18IWcyXubFjh3oNX4PL5iEqwytXYb742CSj6B1kYC3+/1Bh6bCh/ GVLe/PlYHaSFYXgmRPqoWGN2fcUVq+Vi/VTGFlp/o0vrlXm9mELOI2Ddb3MJfL+E0Eli sRXisYks5lTVHR2Yjk0IS5mHW1UTMTxbbqxWTk0w+SYYVMRxpYQHeqnNtFiRwiiHg+yY wZcetFDYwdJado275z+xsVEoaseN7IaQHoip55u1Piv6bd7S2XX9t2mXpSSOpdRUCRfG dWoYjm14ciqBVkQFhAPUYdXn/K/Wg1fjx12lJ/dwLpOLy/19njCYlC54dnvHXX7pXctT e2aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=iVfq80sT0IGJljpW+Ios8Z1VdC94U/l2KoPFUh3UVm8=; fh=qYSE4JWoGuek8PPANgtObAomYOrd4iJoUXDlbhr3PnI=; b=GIifAQvR/Qg5yZFduwoNXmKy96wU2iZHoKve0NmMAt96OXYGa1kH0g6d4ePs4vW1tj 2x1/SO5OEGHYsj/zUcPw0GdTZ5ReUnp1APLfXypreuK74YGcCvqG0x8mmrHptacrdkAl 5GvbeZkdzo97e6L1Q92mhOSRZPn1oyIAJJ+akdByXqwKl7QutcPdMHHJEGDvjrIoKKNi BiutaWScPNrN3R39+9vc6AzRWbeqX8XzGbK9flfIcxkGCmDDeLMXU3D/B1OypQtOJpXm LKFMMaDZcaa+X71eXE093WVJI9nX5JIatJrldU8dBG89VWjkH+SMNDUUQBvmkAVT4oht 6jLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id z189-20020a6333c6000000b00577646e2b5bsi5663645pgz.652.2023.10.07.03.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 03:38:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 0EFE0808BE5A; Sat, 7 Oct 2023 03:37:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343843AbjJGKhL (ORCPT + 99 others); Sat, 7 Oct 2023 06:37:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343815AbjJGKhJ (ORCPT ); Sat, 7 Oct 2023 06:37:09 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F3324102; Sat, 7 Oct 2023 03:37:05 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 397AaxPL023933; Sat, 7 Oct 2023 12:36:59 +0200 Date: Sat, 7 Oct 2023 12:36:59 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2] tools/nolibc: add support for constructors and destructors Message-ID: <20231007103659.GC23812@1wt.eu> References: <20231007-nolibc-constructors-v2-1-ef84693efbc1@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231007-nolibc-constructors-v2-1-ef84693efbc1@weissschuh.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sat, 07 Oct 2023 03:37:23 -0700 (PDT) X-Spam-Level: ** On Sat, Oct 07, 2023 at 12:01:39PM +0200, Thomas Wei?schuh wrote: > With the startup code moved to C, implementing support for > constructors and deconstructors is fairly easy to implement. > > Examples for code size impact: > > text data bss dec hex filename > 21837 104 88 22029 560d nolibc-test.before > 22135 120 88 22343 5747 nolibc-test.after > 21970 104 88 22162 5692 nolibc-test.after-only-crt.h-changes > > The sections are defined by [0]. > > [0] https://refspecs.linuxfoundation.org/elf/gabi4+/ch5.dynamic.html > > Signed-off-by: Thomas Wei?schuh Acked-by: Willy Tarreau Thanks! Willy