From patchwork Thu Nov 14 17:03:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 843183 Delivered-To: patch@linaro.org Received: by 2002:adf:9bcc:0:b0:382:184f:390f with SMTP id e12csp394102wrc; Thu, 14 Nov 2024 09:04:16 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXwUaov0rwVc2gKpZL1UnVIAIQMTBiM6itAlO+qOmtnUoR+W4KtCMid5cmLLH9Jgj14iNSStQ==@linaro.org X-Google-Smtp-Source: AGHT+IEb9Q3e6LB+7Mv+NkgtcGTbcNxDYPClta+gNyDf9KUzt1jWbvxFPK1mqjwLqMmw38ma1fVF X-Received: by 2002:a05:6512:130e:b0:539:fd20:c41f with SMTP id 2adb3069b0e04-53d862be37dmr13985908e87.3.1731603856471; Thu, 14 Nov 2024 09:04:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731603856; cv=none; d=google.com; s=arc-20240605; b=RmGP93SlT6UhZIKhXv/pFByuXqxUCkzKhqNp4j1SucN/ghBiqmiX2JW/dNxcwCqWVh uxVsESFXXVYP2F7VRwuxB+Dl4PlNzldmz0JPGzzUf8Pu7TO5G24dBWsL8wokPRjmMswR uPheOcwHwpQaWwgw7Pny6g16X1X1jde1ce0hPktiekV9R1t4BAjKG68CGYGk7VK9evV4 zlaQYx5HdY3/rGn1CxuhwW6pUerIKKcJE2SXuE4qWFQ/pAy4C53ymn1htunK0zlwWx0L tU6DYMS6pn05uG06VRZ8nS1kDsumWZA130wNZIZNblevqkZd6gRmN6c1wXRApXepnU0Y Awrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=YS14o6RFEvEryMVAII/VahLSzplW6LctthQK+jDgtrc=; fh=88mPutLyw1/cN54U18j7OGO+83zPczIuUiRnmPijhv4=; b=YI4a3LdU00ln4RQZweHpPGgkcGePexl/ZJKi0rFUyDZxwDqCJoMnBX6A9UUrsg2n/Y fxY/6En+Y0Ze10pU+ctJmwn3VvvRgxsfVkzCWB4HqFzoLDOho0nCL2HbZUlvDlIXkS6U LFlDN67aF6NpC8+XUAtDP6/eetQrn8sJKZDOJBgybfw5cBmlvBlZueQ7YFKP5NAgsmqv ZtA8cohry/H37Ww3mk9gwDJnkA5GhD0eBXgeI0XKe/qKe3f5+r/AQA2mJHGXCJQTlFns jGcocr+ziiz+qJ+21cS3mNMAJjzevRc8JnwCXRDBbiixYoQNG7eRkbZKHnP1Ka8RwYDN 5HUQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s7vfeRju; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5cf79b7507csi945504a12.51.2024.11.14.09.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 09:04:16 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s7vfeRju; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9116388E26; Thu, 14 Nov 2024 18:04:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="s7vfeRju"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DFCFF88E2D; Thu, 14 Nov 2024 18:04:10 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (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 3F69588DC8 for ; Thu, 14 Nov 2024 18:04:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-aa1f1f2d508so124465166b.2 for ; Thu, 14 Nov 2024 09:04:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731603848; x=1732208648; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YS14o6RFEvEryMVAII/VahLSzplW6LctthQK+jDgtrc=; b=s7vfeRjuVlkDfZrS2eJe/mUFmBqLxc2Oq03Z1mItkcFpckhF0e3mbtHY2TC2z7ASoK z/c/qPDw4mOGel07s++kCeqhBsb0+Kj5hC/+Tg1wIK9TdpMb2lGcMMFViD/uXL82mMyc 7kpuGO7ic2iqLKvmEPtAYc6tX1JscDCoOQc7RfKtuWRh4VAopddy0KVJjxxe0FIHAMUu KKgV4Ok4UTGT82xZTPw8w+SV4UwRgjDmbzA6/yNuK4QL5QJcnkA6U2D5fn5G5DvWaeT2 6oJWrHS/8V3hBgFfHC88EsGnEKMyhx9W6gp6o4hWacXRGr8F/3qNY3Q3hTG9Q7CGaR2z SZdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731603848; x=1732208648; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YS14o6RFEvEryMVAII/VahLSzplW6LctthQK+jDgtrc=; b=U1Z4re6CophQFM6OAGZXEcf6zyNTj192zi6x9hSMl2OUYv9rzsI53L/jOMgNq3qD+L Ihdu5ZRd7rv4KOSdJ2n6jMdgJImsYrPr778p6xT5zG3cRV/i5l0Eg8rUZ9UBU1mBK87D KSmMnUC3PsRaqd6Y4xEohQAVmrtptR61bB3RNMU6vdy01gcXsNmF7yMpVtYnJyRFVDG+ rmQ6m8GJ+ySU07cNukU2R21b3sPyAuZ1NEUI69NWgL9ZFk5dzT8i3stCKZlOV7SqTQgg g4mXmuXACNBYEtAQmL9jFToafYPl0Alg9+nf7Cw7dnZTnqvEVVZbWToN4rfHDmHGV4TJ CY+w== X-Forwarded-Encrypted: i=1; AJvYcCXrMheRyZedRiULDzFphM1yTJCVN+BaSCAlhGP71HP33Fyat2sQQpMXobs0jcZ8/PKktwrqz/w=@lists.denx.de X-Gm-Message-State: AOJu0YzwxKnwNqTgqMjmRRBlnw4BP/gzcBzXMPKuiewzcvq6UA4nkwjd ixAlr/bc1C5L5qM1mTceWjKYYHtPQFuwdV5SNyabsxt8ovntV8QTDV5mMiBY42o= X-Received: by 2002:a17:906:eec3:b0:a99:f71a:4305 with SMTP id a640c23a62f3a-a9eeff0da96mr2624088966b.18.1731603842547; Thu, 14 Nov 2024 09:04:02 -0800 (PST) Received: from lion.caleb.rex.connolly.tech ([2a02:8109:888d:ff00:ca7f:54ff:fe52:4519]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa20df26809sm84219566b.27.2024.11.14.09.04.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 09:04:02 -0800 (PST) From: Caleb Connolly To: Caleb Connolly , Tom Rini Cc: u-boot-qcom@groups.io, Neil Armstrong , u-boot@lists.denx.de Subject: [PATCH] u-boot-elf.lds: mark executable Date: Thu, 14 Nov 2024 18:03:53 +0100 Message-ID: <20241114170356.3248124-1-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean Some pre-loaders/bootROMs like those on Qualcomm platforms actually use the ELF format and respect the headers. Mark U-Boot as executable so we can actually run it on these boards. Signed-off-by: Caleb Connolly --- arch/u-boot-elf.lds | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/u-boot-elf.lds b/arch/u-boot-elf.lds index 1666027e3635..eb84a22dd71b 100644 --- a/arch/u-boot-elf.lds +++ b/arch/u-boot-elf.lds @@ -1,5 +1,9 @@ ENTRY(CONFIG_PLATFORM_ELFENTRY) +PHDRS +{ + data PT_LOAD FLAGS(7); +} SECTIONS { . = CONFIG_PLATFORM_ELFENTRY;