Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 38FCDC433EF for ; Sun, 23 Jan 2022 19:56:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 63FBE83542; Sun, 23 Jan 2022 20:55:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (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=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="O87eKGG8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4FC8783815; Sun, 23 Jan 2022 20:55:52 +0100 (CET) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (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 8FE0983831 for ; Sun, 23 Jan 2022 20:55:49 +0100 (CET) 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@chromium.org Received: by mail-io1-xd2f.google.com with SMTP id a12so17091453iod.9 for ; Sun, 23 Jan 2022 11:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j9YuOcADDSFk8ccecKTutj+5XGRm1rXQIAMloBF2h4I=; b=O87eKGG8I4eQ1tTX5nfD+M2147834owUegskzgeGtBGJgbQpYh/wN4Y+IQCCswOsyj Q/VjsvoaiwWFQWR3SBEYfWc+1rIudwbBCd0KLhSix0xN0tFD41dLcbx1dQSd7b+T+neA xShXMKLre04vQlszpHtjkAgslqHZPUCYdgR0I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j9YuOcADDSFk8ccecKTutj+5XGRm1rXQIAMloBF2h4I=; b=cXoW71P/MF/kuUK/G/9sWUduQDf4Q7HTSbNE4Quq12d6twTMecn8Os0YerkEsN6ZHB NZps2j5V2/58NwxtsIaOhluITRXkk6mycS3wpz8wD6Xe9TiGI2gOnoV7t/xcv60PLPS3 g0D5tr6bep2b/QSAOOzCjiWB9VRZ5HahLT8P+4UKcgvHQkhM+UOohOwWrQmHptyAG0V7 GSdMpU8/i2wrsnlrkHq4GDcRF6zKZ6zTmzqOBteG5ltKUbXcq0XrQ2X9G3l9/hFg14G/ iIblIVpamsrJMxgcWO2L9Iabjv2XekgM9L0Wt5mVHR/5TO6stV+f4EyJzZZWq/0r9TEt rKyw== X-Gm-Message-State: AOAM530TjLFPrT3d4D5Thh5H1QJYUshu8k9AtIu8WJelKYlSbNRbtQbI yLGJ87jUICYee/TWsv8jr2awByHkAS3jeA== X-Google-Smtp-Source: ABdhPJyl6mp0TaNUhoumw8rGkCnMmCzk4CLoNwNiG91rXm6Xpq4ZEJCugJ0/vYfMRbWBkBWas6UbvQ== X-Received: by 2002:a05:6602:2a4a:: with SMTP id k10mr6402663iov.156.1642967748261; Sun, 23 Jan 2022 11:55:48 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id p7sm4105084ilo.71.2022.01.23.11.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 11:55:47 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Heiko Thiery , Simon Glass Subject: [PATCH] binman: Document the __bss_size symbol error Date: Sun, 23 Jan 2022 12:55:46 -0700 Message-Id: <20220123195546.3152421-1-sjg@chromium.org> X-Mailer: git-send-email 2.35.0.rc0.227.g00780c9af4-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean Add a note about the message so it is clear why it occurs. Signed-off-by: Simon Glass --- tools/binman/binman.rst | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst index db2234bd8ff..eb2c9d4bdcc 100644 --- a/tools/binman/binman.rst +++ b/tools/binman/binman.rst @@ -1232,6 +1232,35 @@ To enable Python test coverage on Debian-type distributions (e.g. Ubuntu):: $ sudo apt-get install python-coverage python3-coverage python-pytest +Error messages +-------------- + +This section provides some guidance for some of the less obvious error messages +produced by binman. + + +Expected __bss_size symbol +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Example:: + + binman: Node '/binman/u-boot-spl-ddr/u-boot-spl/u-boot-spl-bss-pad': + Expected __bss_size symbol in spl/u-boot-spl + +This indicates that binman needs the `__bss_size` symbol to be defined in the +SPL binary, where `spl/u-boot-spl` is the ELF file containing the symbols. The +symbol tells binman the size of the BSS region, in bytes. It needs this to be +able to pad the image so that the following entries do not overlap the BSS, +which would cause them to be overwritte by variable access in SPL. + +This symbols is normally defined in the linker script, immediately after +_bss_start and __bss_end are defined, like this:: + + __bss_size = __bss_end - __bss_start; + +You may need to add it to your linker script if you get this error. + + Concurrent tests ---------------- -- 2.35.0.rc0.227.g00780c9af4-goog