From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E788BC2B9F7 for ; Tue, 25 May 2021 01:04:24 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 69DCE613D8 for ; Tue, 25 May 2021 01:04:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 69DCE613D8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 580C582F58; Tue, 25 May 2021 03:03:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="BL0zLEk+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0022482F1D; Tue, 25 May 2021 03:03:13 +0200 (CEST) Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1C95382F41 for ; Tue, 25 May 2021 02:55:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x833.google.com with SMTP id i12so2491464qtr.7 for ; Mon, 24 May 2021 17:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=yjmL9kRbZpP/S5o9tfATRdX3CwvPY9Y5BPwSkTM4A2s=; b=BL0zLEk+IjBG8VH34+5HlDKFKTQUrLIrG10yW09c7GZQeBjmr0P2ebKLcwe9asFGcd YRHeDjAUQd91tEQR0fdxVOjs0gIXCmf3hkQx1hdrVqdiPOjBbhnaSD763H3JM78UeLSf YI9LSQ0yZK+wkmpRh5BVhdt0UvyrDWcZmu2R0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=yjmL9kRbZpP/S5o9tfATRdX3CwvPY9Y5BPwSkTM4A2s=; b=C5DkizQ1LAyqwzuqg2hCzYPZlTZNiaCPErP7wxCkyKA2akY4nNSMh/IuM0OH+UOja3 6f7fbv3lioEMI3u2OKyqmRiIVEBOziLmtthq4mMGvRLNPfXd0rHLxZQzQq7GTnZGlkT6 xu3RTOOhu7Bd03IZc9FDHIF0eu/jhBqROiOMsYij0qd2aHEuPMDUkyVXhKxWIqkwRX8w AHWMRuof2Chsxg0d9Ee9TKIzSyLkYXKCArNrHeaNbEFDavWNQFAc00UW/N7lqudsrJm1 Zb98TnqhakoBj1IO2CSAHjz3iuP4dv9MmoV9WZhky4DiupgOx88uRj7A4c93mxerJen1 njCg== X-Gm-Message-State: AOAM530nwEUWHUJ/S9z+o+vUE3ZXHK6SF5W5mX52E8Z8Qwrx1c577rQf HfxPAMbkg1AtiJu+m46X8C2A0g== X-Google-Smtp-Source: ABdhPJz+z8mugl3pANzxH76VWdQb46CGp1PZ7XM1qoneUv2hFeorjd1g1eTaf4dKzpXSpBWon3rrsA== X-Received: by 2002:a05:622a:413:: with SMTP id n19mr29027315qtx.238.1621904150935; Mon, 24 May 2021 17:55:50 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-5ce8-9acb-4a3a-47a0.res6.spectrum.com. [2603:6081:7b01:cbda:5ce8:9acb:4a3a:47a0]) by smtp.gmail.com with ESMTPSA id s11sm11360691qti.6.2021.05.24.17.55.49 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 May 2021 17:55:50 -0700 (PDT) Date: Mon, 24 May 2021 20:55:48 -0400 From: Tom Rini To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: u-boot@lists.denx.de, Simon Glass , Heiko Schocher , Patrick Delaunay , Patrice CHOTARD , Miquel Raynal , Pali =?iso-8859-1?Q?Roh=E1r?= , Stefan Roese , Heinrich Schuchardt , Alexander Graf , Marek Vasut , Neil Armstrong , Ryder Lee , Adam Ford , Bin Meng , Harald Seiler , Tim Harvey Subject: Re: [PATCH u-boot v4 17/36] sandbox: use sections instead of symbols for getopt array boundaries Message-ID: <20210525005548.GX17669@bill-the-cat> References: <20210520112425.25166-1-marek.behun@nic.cz> <20210520112425.25166-18-marek.behun@nic.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mgiwrdAEAD3dGn9i" Content-Disposition: inline In-Reply-To: <20210520112425.25166-18-marek.behun@nic.cz> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean --mgiwrdAEAD3dGn9i Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 20, 2021 at 01:24:06PM +0200, Marek Beh=FAn wrote: > In style of linked lists, instead of declaring symbols for boundaries > of getopt options array in the linker script, declare corresponding > sections and retrieve the boundaries via static inline functions. >=20 > Without this clang's LTO produces binary without any getopt options, > because for some reason it thinks that array is empty (start and end > symbols are at the same address). >=20 > Signed-off-by: Marek Beh=FAn > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! --=20 Tom --mgiwrdAEAD3dGn9i Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmCsSxMACgkQFHw5/5Y0 tyza8QwAmMHrz9jUiiiNSkTYtkxskkKErVfdY1R9HIE3T+fivfvAqO38Nc7eBHCD xScFGpI+o3mXVNRaKCJHltxsqtlrvidRUoRxkbDMXVy2+KNNLf6g1ILfnvBwXPgG aL/5gldX1zEBWu5mlosbVNESShpzGjZnYIOqYn8OJDuaYox5Vm7PzI/PimYyjHfj zISaZiT3VcP5M7rofhNK/UieXa++6FcLBidwQZvjMTM0xnnHC3zIMxoj+S6CODYQ cTL5Ej23PCsrEkp9VBF9J4c2kKNJa6AJbJpeGhSppfSD0oCJO1UNMpRcUmrjBir0 dazkZvUbyZznQY7Tu5wkCZr2LHieCfjC6BefK75ICR7f+Iud+Qzy1L/fLJDNXnFV D226NYzd509p0m3N8fsQyNi9pgIK5TQsZRx2Op6jKnx/VzodjfJASS6QCNIgqEH4 K04j+dkSSkMg4472E7OkR8i1gjmkAo0Em4vZ9VvQnqTrbGLE/v/Y/vRNVZn19FSJ xDENWCFn =aC35 -----END PGP SIGNATURE----- --mgiwrdAEAD3dGn9i--