Message ID | 20210714220547.170371-19-mr.nuke.me@gmail.com |
---|---|
State | Accepted |
Commit | b9826bf0c16ec225042c3fa760f8e22e6d9bc329 |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=nK3Ww7Fs; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GQBWH3ctCz9sWX for <incoming@patchwork.ozlabs.org>; Thu, 15 Jul 2021 08:09:47 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8A1E483143; Thu, 15 Jul 2021 00:08:28 +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="nK3Ww7Fs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2AD2B82992; Thu, 15 Jul 2021 00:06:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) (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 54DA0829C7 for <u-boot@lists.denx.de>; Thu, 15 Jul 2021 00:06:11 +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-x32e.google.com with SMTP id 42-20020a9d012d0000b02904b98d90c82cso4106889otu.5 for <u-boot@lists.denx.de>; Wed, 14 Jul 2021 15:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gHL3/mP2MZ+Arx8PH2FYcZmkYxwkrnmbmazcmk43ySg=; b=nK3Ww7Fs+rxH+fLu57ZxMKawnmi4qdG0W8mBKkItYskNp38WydnsJAGAFGFRw4f8Vn hp9d+j+8sTGMJKexSfEwPeVsenfyXL8Grbrgfm2KQMVhh1zcpJokuvVAqml2/KfSPkCA WoXbzxVVIgFEdsIkwzE018u+LdvV6yTpilTaHAwyKvfoBTtAuRBhpS4CmJMGK1ZLSuaj gY9DUPzYnJHe7mSvozMsRDDNRCJgl/pSXPiMQOSsOKYPOYlwKbBd7fbacFuYzGvm2uBN OOoXAThZg9C0S9h6iAAXfg86Z034KDTL9BCC8Wlttu8UhfLJJt9FZ5kg2O5OFZZhRgSy a65A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gHL3/mP2MZ+Arx8PH2FYcZmkYxwkrnmbmazcmk43ySg=; b=UjXNQNMHJnIFwl0PR5OZQ5zk96tM3qDp0EeVfj6kROaKIXpZQGS4GAsJtPKzr6qgEH icxNc1l/4j6bwyJZZs9+tgEuHLuWyEV1aZ7gG1U6v08yjN8PO+hr6hLTH+fgwXRoci/w AVbrqihgTospX+awhwEY9X2CvjeUtwYeGbPN24NzHGdEc2KWVyCGlwxy5i8aJrPa8TDH 4mlZKYUqq61injQHEtCmItPxTkCYwKQBTFTEKtv45Jy9UINncHtNI7gd/BDiVEvLhimv BaqNm0GaS4rRICOpu0osxCPFgFK86ypgRyZ644gdfSPuJGEJn/YMEMzbokVNzmsWLTAi n4uQ== X-Gm-Message-State: AOAM533/H0jyx6mWIsNCf2sE9lQKOj5rFbmSJILrlqy3Om4qRXNHsG0+ xt7tugaZRcd5+ADuN+n/SheE/xcdAU8= X-Google-Smtp-Source: ABdhPJz12B+3yM0BOAisojsr0Kx4jM3aJ9e1QVjgxVu7sObM67GtPul3ZHm7j5c/sTrm5eoCrY3g/Q== X-Received: by 2002:a9d:7982:: with SMTP id h2mr255148otm.291.1626300369596; Wed, 14 Jul 2021 15:06:09 -0700 (PDT) Received: from nuclearis3.lan (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id w64sm687278otb.45.2021.07.14.15.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 15:06:09 -0700 (PDT) From: Alexandru Gagniuc <mr.nuke.me@gmail.com> To: u-boot@lists.denx.de, trini@konsulko.com Cc: Alexandru Gagniuc <mr.nuke.me@gmail.com>, Simon Glass <sjg@chromium.org>, Michal Simek <michal.simek@xilinx.com> Subject: [PATCH v3 18/19] image: Add support for relocating crypto_algos in linker lists Date: Wed, 14 Jul 2021 17:05:46 -0500 Message-Id: <20210714220547.170371-19-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210714211138.GA25256@bill-the-cat> References: <20210714211138.GA25256@bill-the-cat> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
tools: Use a single config for Host OpenSSL (plus dependent patches)
|
expand
|
diff --git a/common/image-sig.c b/common/image-sig.c index d680bf7d98..fb0035524e 100644 --- a/common/image-sig.c +++ b/common/image-sig.c @@ -97,6 +97,19 @@ struct crypto_algo *image_get_crypto_algo(const char *full_name) struct crypto_algo *crypto, *end; const char *name; +#if defined(CONFIG_NEEDS_MANUAL_RELOC) + static bool done; + + if (!done) { + crypto = ll_entry_start(struct crypto_algo, cryptos); + end = ll_entry_end(struct crypto_algo, cryptos); + for (; crypto < end; crypto++) { + crypto->name += gd->reloc_off; + crypto->verify += gd->reloc_off; + } + } +#endif + /* Move name to after the comma */ name = strchr(full_name, ','); if (!name)