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=-4.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no 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 EE052C4338F for ; Wed, 18 Aug 2021 19:11:09 +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 CC61E61075 for ; Wed, 18 Aug 2021 19:11:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CC61E61075 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A80E680661; Wed, 18 Aug 2021 21:11:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="DeR35NKH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 15E0080EEA; Wed, 18 Aug 2021 21:11:04 +0200 (CEST) Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) (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 9EA75800D0 for ; Wed, 18 Aug 2021 21:11:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.nuke.me@gmail.com Received: by mail-ot1-x333.google.com with SMTP id 108-20020a9d01750000b029050e5cc11ae3so5384510otu.5 for ; Wed, 18 Aug 2021 12:11:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=jcjtb4QBwpQKrt6VLRvhEtiSjru95mR/ZaybZNK+Fkw=; b=DeR35NKH4/KLglnpnWa+pNKQeMa7AHGgKfZTeERtOLrAoTc5XQynrytBBWQrH4DC8U edyc4XriO1rypeKOcBsFovpNIE96M2GvCpQq1ohP+LeoSE5dLQUwnap06KA8EMBtqeLd NX0ESG2qryXhq+v79u8aHRXEU4liP8qpv+BG7VpW4hBU4gXqa9hRlqOdEZos3D9ICK5t qcwxr5fPwHZFBHijCzrKaVUpHYJxFM1Z2vQdmvUeEzgVyEoGYeNWdoSSAWrc/e38VpDA SOFAmCSY+sIWUlUX26G6fgwjuYYwh+YUWsTlbWnOq0tdKjzjQksCVa2LX9R/w/12+Wq3 2/eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=jcjtb4QBwpQKrt6VLRvhEtiSjru95mR/ZaybZNK+Fkw=; b=j2cq1g0Jp6T1G+ald85iByVtqszipY5rtyK20RDM7WT7rbcE5l5nShtzlEQ8ROrC0s K927ojawjSYJkc8QwKppdbTxMl2NzFMLUuLUnNHj+sWL7N88CY+q/b4tbUkIt53QLzIF 7la4blQma7YlI2SgsEiY3AG+fiE8MfrR7wG2RaMZzZ7DSxDy81UT3U3zoxx14/pgWYQA ZEMA3Ee4EXC3NpcsUFjsQkZpQt38MrOpGfNHrdDCTYY1w2SntWv3baiJR84gmGDIP6d9 4FtetDZyGFXTg3BK5DJrtWIfFxJBtxhLzrQZGW+6vqhCwwV1FeFTqsZ8KSfa93+f7m9p lSQg== X-Gm-Message-State: AOAM5309b1q7TduvC1i2kqZ4MSJszRmvqPGBHba4KdWayczDIbFMdsQ3 TKNOOsZH8UGNyd70NSR7lIjvR6PJpBE= X-Google-Smtp-Source: ABdhPJxn45DHolnbKX1LotCa1CZzmWSZJH056rfR6BbLZ977QHsBxfUX1G29zJ58Amiqip+nU5LwfA== X-Received: by 2002:a05:6830:20c2:: with SMTP id z2mr8133747otq.285.1629313858851; Wed, 18 Aug 2021 12:10:58 -0700 (PDT) Received: from nuclearis3.gtech (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id x60sm178226ota.72.2021.08.18.12.10.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Aug 2021 12:10:58 -0700 (PDT) From: "Alex G." Subject: A mea culpa undefined reference in v2021.10-rc2, padding_algos, linker lists To: Simon Glass Cc: "u-boot@lists.denx.de" Message-ID: Date: Wed, 18 Aug 2021 14:10:57 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 Hi Simon, I'm seeing an undefined reference to padding_pkcs_15_verify with v2021.10-rc2. It happens when enabling FIT_SIGNATURE. I've tracked it down to the following two commits: commit 92c960bc1d ("lib: rsa: Remove #ifdefs from rsa.h") commit 61416fe9df ("Kconfig: FIT_SIGNATURE should not select RSA_VERIFY") Individually, each commit is fine, but when put together, they cause the issue, as the static inline padding_pkcs_15_verify() implementation is removed from rsa.h. My hypothesis is that moving padding_algos to a linker list will solve this specific problem. I realize you might be working on the same part of the code. Should I address this issue, or should I wait for your series? Alex