From patchwork Thu Feb 12 00:14:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1834 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855305; bh=e/SC/zhI9m33FdSt9W9FIW1mL0WdCzpXQ463lHifW48=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=XXPw2PaDk0B9oJpTg6oSMMkKsX7YW1JFW1aKgWGfU0ZaZrVufrIEywuKA4/0JrxTL JxmN4tlKo67s0qcAzypyVxjEW+FVVLsSugbNyCcc08blGI2tGKl8HnQCQEilSUjPv7 2c1TfIs3M8Zwo6vfWcSd+Yw4AlUApA+xP37498ktCwnVlZozTHdcmhhXZYVLoUbbHa lbX3ta2Nd35C4yxEUeYEZHmcKTZ4yuCu8+BXOBqM9dErQnyeJJNep/xy7Ojo5iMchR c+dLn13zOVPC4mYneEj8jjtdttw2Ny+pbG4MmZxj17lLuKzcCE7vZiANWZ0gnAvN6i s07I7FkvfOkeA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7882769AB2 for ; Wed, 11 Feb 2026 17:15:05 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id dxMV-77NjnhO for ; Wed, 11 Feb 2026 17:15:05 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855304; bh=e/SC/zhI9m33FdSt9W9FIW1mL0WdCzpXQ463lHifW48=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=V086kV5gJXIcxVSi7Zmd8zg0IAHDENHiNCra/EsQRcRChbDKAicunzgty4ukeL5m+ P/uGHRykaLCZv1yY7DbZ/IjqSVI7lK4DQmbpiXUpDAivO4HZZGPMiuyWKcZuWPiSvn 4XGVpjRObVFrE6I2kULdr5aDWIAMAFC3Krf0rlkllvkl2fIcSRb2wk2v5mbCqQYUch NAWbZDv56ibvB2DhwzKbKvuvYAHCL4FQfXI6F65/Z0U58U/3UAuzB1rgT9Xck/hqGj m1gJqj2deKz9LU+6KZN182POqQ4KjkIrEASgeseW6ljoxmnURnW1MdyLgcfsaFvVqe UBbV9G72YyBFw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 49C7B69A99 for ; Wed, 11 Feb 2026 17:15:04 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855303; bh=WSE6hvIl47cmW0Ld7OKKMOEY+omRKPW2ehssrnYd464=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ItPwVyJaIB5CvNGf2U4YHnChNekqhGigZ2EirnX4Xi9rBi3jc+ng7xyuzeyA6mD6P FydFMHroQMAO9zLmkCtTrBdR6gQixhCNuw6VNWlJRln9HQWtV7VjKKJWdpzplJjX4L IeUZJw6cIPoU/TXK5bvMc3CCPGJhjw2Qz6oznc2/C3idpeSDY8g+3xT3vPPI4Jqz6K 7Ghcc6jN7a6bQky/W2HM1BSA8yhyArENbmUUrIqSy/pMtN/e8f9iykbj8wz5vLQXCF fxGFYmdA/I3SSMz8UKEzPq7pgstrz1TartFbGsfeWPmtV1W2AHm2nKHVK/nvKgAMGW I+3y6tmSNde0g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4D2C269AAB; Wed, 11 Feb 2026 17:15:03 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id FWw17x3Lu5sQ; Wed, 11 Feb 2026 17:15:03 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855297; bh=0I9CE9X0PYFH4Md9rfM+bvjAGEO/h+RrRcVHFY+aBH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WlMvmCBq0zCslkUTeuuvC27UOonUP0NoZqFd1oisDkkQgSt+J95GXRaAkeTuxoFct brlfTJH51UMJmhNtfzQ79dg2PAz9G9SZM2Bttuq7YItQyzXvbJhSwo6rJI796KgajH vBKEOhGIh8/iXL6MrU5BKzYRIo+SEFdtyqbVnFxWOA5sssBFGNTNpqtfEdzJ12Soc5 08a2gAN2hi9nvP+8CN6isH/UHArIhpe7THAVg7fVljHS5+Qol0l5Y1Xmu971fLryii MFkcVxZmM17NP1KSk6H3GdgNl0Ep8Dlzj72qOzGOC5hY8KbXNcQS99+PrO5eBvI+LZ NEtfU/yL5xRnA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 1ECAF699C6; Wed, 11 Feb 2026 17:14:57 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 11 Feb 2026 17:14:02 -0700 Message-ID: <20260212001410.1919749-12-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260212001410.1919749-1-sjg@u-boot.org> References: <20260212001410.1919749-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: YS3PB5IQCNCSHFIZU3NC2VYPYW2XJ65W X-Message-ID-Hash: YS3PB5IQCNCSHFIZU3NC2VYPYW2XJ65W X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass , "Claude Opus 4 . 6" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 11/15] riscv: Skip prelink-riscv for EFI application builds List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass prelink-riscv processes static-PIE relocations in the U-Boot binary, but EFI applications are built as shared objects with dynamic relocations handled by the EFI CRT0. Running prelink-riscv on an EFI app binary fails. Skip the prelink-riscv step when CONFIG_EFI_APP is set. Co-developed-by: Claude Opus 4.6 Signed-off-by: Simon Glass --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index ee5b54c4c51..a446e634a7f 100644 --- a/Makefile +++ b/Makefile @@ -1864,8 +1864,10 @@ ifeq ($(CONFIG_KALLSYMS),y) endif $(call cmd,llcheck,u-boot) ifeq ($(CONFIG_RISCV),y) +ifneq ($(CONFIG_EFI_APP),y) @tools/prelink-riscv $@ endif +endif # Common step: create archive and prepare modified object files quiet_cmd_ulib-objs = OBJS $@