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=-13.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,UNPARSEABLE_RELAY,URIBL_BLOCKED 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 89CEBC07E95 for ; Sun, 4 Jul 2021 20:15:55 +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 C141E613F1 for ; Sun, 4 Jul 2021 20:15:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C141E613F1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org 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 2A1D682A29; Sun, 4 Jul 2021 22:15:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="J6G51nAo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7882582BC9; Sun, 4 Jul 2021 22:15:34 +0200 (CEST) Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (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 EF47C82B74 for ; Sun, 4 Jul 2021 22:15:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-wm1-x329.google.com with SMTP id l1so9957983wme.4 for ; Sun, 04 Jul 2021 13:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:from:in-reply-to:references:date:message-id :subject:to:cc; bh=iJMRzSDITnbMXjo2cDv1APviWrtldv2dJHbevIamyXQ=; b=J6G51nAorloPgjOE6IqiH5UlUV/U2fy6JisICGeptrd+m7gF9VdLtyf6J7RrSCuuw6 KM9A2yUqHE5BNfmv5bNJFxj97PifXL43GnL/Yw4lacus//FVtKBs3c66xB9UOWv1KIQu l2oggzPgGaNl+EgojyGs3rhcPnzFNN1ECOCD0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:in-reply-to:references :date:message-id:subject:to:cc; bh=iJMRzSDITnbMXjo2cDv1APviWrtldv2dJHbevIamyXQ=; b=BQxX0FfrIlVlhkC9uWfo+6DgB+Aq9pa9Kf+WCI/4GtVGk1VxZ9PoUoqglrC7v8KzMV zf6yIoQS+9m3WyLV7bmupCZbYt3waHfcOQlGlbypGCo92Ik9q5iJAmI28gcMNJ2tQTnh JvesVJhz1CFQ1iNqDFCQ+Dw4QouvqkjUTX/uksk26zfzjzg+5vYfxZZbrDDeZ6pDsnLb 10HkQMuPJrA6mW2rhOHsZFlUPy7/4ggaba1Ogl/wYr7P9h6SLDzDKqPAi7NlYE4Sgzf3 2JnJaEKSnBZsthUvIdNlSkHgNdICHtQVGx0I9yo09Lp9dSHX9dSBK/9bOkFyyfFb4Xn9 Y51w== X-Gm-Message-State: AOAM533QONAZFR2v0CVwkQSbWz4Wv8p9GAipgrLZnJQQpVYkYBH45Tb9 cNkcz8CP8iLobn6SqqxaqIeTY6o/qSHWyCzCxp+kfg== X-Google-Smtp-Source: ABdhPJx1RAvKuRRWIqT0MeM9PdT63Jtld1LedHuMiq7RA4A1eylDzBLMcz41cP/doAJFh3POxRUtCxycY+4H16TSczI= X-Received: by 2002:a7b:ca43:: with SMTP id m3mr11027107wml.74.1625429729274; Sun, 04 Jul 2021 13:15:29 -0700 (PDT) Received: from 480794996271 named unknown by gmailapi.google.com with HTTPREST; Sun, 4 Jul 2021 13:15:27 -0700 MIME-Version: 1.0 From: Simon Glass In-Reply-To: References: <20210519100239.8829-1-xypron.glpk@gmx.de> <752D002CFF5D0F4FA35C0100F1D73F3FE5EA3D5C@ATCPCS12.andestech.com> Date: Sun, 4 Jul 2021 13:15:27 -0700 X-Google-Sender-Auth: _43ZP9GJYTXpl7eoiw5XHITklfw Message-ID: Subject: Re: [PATCH v2 1/1] sandbox: don't refer to symbol _init To: Rick Chen Cc: U-Boot Mailing List , ovidiu.panait@windriver.com, Stefan Roese , Masahiro Yamada , Heinrich Schuchardt , rick , Bin Meng , Simon Glass Content-Type: text/plain; charset="UTF-8" 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.103.2 at phobos.denx.de X-Virus-Status: Clean > From: U-Boot On Behalf Of Heinrich Schuchardt > Sent: Wednesday, May 19, 2021 6:03 PM > To: Simon Glass > Cc: Ovidiu Panait ; Bin Meng ; Stefan Roese ; Masahiro Yamada ; u-boot@lists.denx.de; Heinrich Schuchardt > Subject: [PATCH v2 1/1] sandbox: don't refer to symbol _init > > GCC provides a symbol _init in crti.o on x86_64 and aarch64 but not on RISC-V. The following lines leads to a build error for sandbox_defconfig on RISC-V due to the missing symbol: > > common/board_f.c:269: > #elif defined(CONFIG_SANDBOX) || defined(CONFIG_EFI_APP) > gd->mon_len = (ulong)&_end - (ulong)_init; > > The sandbox code is not copied into the memory allocated using mmap(). > Hence we can safely use gd->mon_len = 0 to avoid the reference to _init. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Bin Meng > --- > v2: > fix typo in commit message > --- > common/board_f.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Rick Chen Applied to u-boot-dm/next, thanks!