Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36434714rwd; Tue, 11 Jul 2023 00:32:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlEm3UpVceh0L85XclMHKg/OgAvUusvvwC2/YQmRunhmIyYSHH/9RVrGsgu1L4tTiBeExrv2 X-Received: by 2002:a05:6808:20a7:b0:3a3:3a0b:aab8 with SMTP id s39-20020a05680820a700b003a33a0baab8mr16304067oiw.48.1689060774569; Tue, 11 Jul 2023 00:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689060774; cv=none; d=google.com; s=arc-20160816; b=ixzcP2usudkC5Niv7uauLcVMI/5LSWpitfGcU9gCJXxIlGOVkF7Wjvps/+mX6O3phP iQ0e1xpLuRGlKel1Wam9PF+IJZcIOqnwNRNduvwBQWsFjNuoRCS8qbas//G74N5eg2qf 1wtgb63otxbawc/O1IZtygSYLgOMU1Jq2sWcEvOPtNNCR1YhJDi1phdg2KWLvOVZ/ZS4 SLtiEy2trOXMsGic8V+c+gHtiV5QDSmZw6LRNsv6xq83cjwOwLmqmKg2rcGw4JDkt0Bf fXZa7gGA58dnDE57SwnFa5XvhAxYAS/0wfNcrDa2rHB4MqgYelxtN/ELyk3EcxztlObb nIbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=rDQtcy4p4uyiAO4QDRn0UBE8x17rqODSXRPqqN75phs=; fh=B89reJUr71aRxlKJ0DefXyhZ/LUqGOgmP8l7QknfTBo=; b=oG7dB5IYBdjjurYSpek8tQbifB55vhXrmxk5Yz9ihQVLARCurxv74odeYiKQ1QerGo Wh5d2r8Kr9gg5mHlerE0fgXiL3+JtqiDb1+nUd9eULv62dkeZ6lvMYgFZSROq0T6flOX 94DX91L7fXETEvtzT5cXQejiv2EQyZ2hJHwODb7RxsrJfTag9UiCYVlLlyG7Jy2+g6hs yZXDqB+jI4OCAooQX7H9rD5u6vCJbHnPx33GxsXfYelpKsMfiea7WdSh24eXOO+evIE4 1lbATt3slrB6URcu55h6xH94cYpA56qYrBW52/+9yH2MIPh36nJYldK9LDMl/dq9E+ky H59g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a631601000000b005409058c8d7si983753pgl.126.2023.07.11.00.32.42; Tue, 11 Jul 2023 00:32:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230507AbjGKHQv (ORCPT + 99 others); Tue, 11 Jul 2023 03:16:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230308AbjGKHQt (ORCPT ); Tue, 11 Jul 2023 03:16:49 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BBEA8A9 for ; Tue, 11 Jul 2023 00:16:48 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 36B7GiaC030699; Tue, 11 Jul 2023 09:16:44 +0200 Date: Tue, 11 Jul 2023 09:16:44 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: linux-kernel@vger.kernel.org, Zhangjin Wu Subject: Re: [PATCH v2] tools/nolibc: completely remove optional environ support Message-ID: References: <20230710-nolibc-environ-v2-1-78b0c465338f@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230710-nolibc-environ-v2-1-78b0c465338f@weissschuh.net> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 10, 2023 at 08:01:34PM +0200, Thomas Wei?schuh wrote: > In commit 52e423f5b93e ("tools/nolibc: export environ as a weak symbol on i386") > and friends the asm startup logic was extended to directly populate the > "environ" array. > > This makes it impossible for "environ" to be dropped by the linker. > Therefore also drop the other logic to handle non-present "environ". > > Also add a testcase to validate the initialization of environ. Thank you Thomas, now pushed to the same branch. Willy