From patchwork Wed Feb 28 10:48:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 776453 Delivered-To: patch@linaro.org Received: by 2002:adf:e94d:0:b0:33d:f458:43ce with SMTP id m13csp226787wrn; Wed, 28 Feb 2024 02:48:51 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU6R7GfHGcK5r6QxLq/pHc81d95udFE0sTbJjrSjhJ06jEWBgiB77koHkmegk4a5SX1OjVxXE/UbVfPzqLUXjXo X-Google-Smtp-Source: AGHT+IHQkvW6rfFG86RMYOikY/ZUA5ZBCddRO6Qb0L0oTlR36UWg7xhhT9aQkDtKFLmX8Qj/745b X-Received: by 2002:a05:600c:190d:b0:412:b15c:9769 with SMTP id j13-20020a05600c190d00b00412b15c9769mr1859547wmq.25.1709117331111; Wed, 28 Feb 2024 02:48:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709117331; cv=none; d=google.com; s=arc-20160816; b=QstiDvxy5zvHYWDYr+f4T8Bo8WVcVWffp857n2HCjQcGdKtKuuqVxQHq3H7GDm2dU2 Ki1kJ1OaDgfk6XGYgC/GwIp99a5WPoW1B8Cap8PBl6OiNC6N7Mzj+tsIKPUD8oH7mryw 3yewlJC4ZvgFPFgOhsUx1JdvecstWzKW1Ql1FhjqVPkLFywKPr5WKxfmXJl/Rd62Ni3U X3YrEXXykp/uO8tRSswV98G/nR5y/nKMUFA4eqwHAT04mFVUCw5Smg95Fdh+ZKKSTgbN 5Ap+QOmL3lrUhlz8yDlv58vgPRxacMpeIJn3VgLj7NLNzNJ4IloR925BAUAVxW7k/K2m Bwug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0q8g5g/mbTqm5EkO78PISZ6mP9TphYlAc5QG72jqGRs=; fh=Qc7Bwm8F6A6m2T1dNMTqiCGSn6FsxQ9ndhZ8EDBeZTo=; b=R/rZ0gKVno7Ze//3Kh1wK+L/jdlqZHw4SybPOkEAscBWIA+Yk6ubTnnNeeC1su7Cht Qf0RK7/3hUvzuWOwfbXmGaYHYQR8BusRBBHRdevclz2marER9hV/C7AJUR4b+OKwZA9R xTYxrKXZBZ6z4B/M81oT4csUJAtFse+1CNMprEwWrzQ+nlC1G/elQKQhvAAr9Alm9Tv3 fqlixxkGPOc+ydLiHWYZefpn4oHExVlSQTB72S2Zbrjw50t2EicScyO9lMUzUbqU8qGU jVDy4e1ZikCYkw19gEUVT3Gk83xbQXQfGzMJGobz0F/+Y2WFrmHRNNA0G7pUc2HWN6BE QmUA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cAqrbtHd; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a17-20020a05600c2d5100b00412a4053bafsi696457wmg.73.2024.02.28.02.48.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:48:51 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cAqrbtHd; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7419387D7E; Wed, 28 Feb 2024 11:48:39 +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="cAqrbtHd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3D21387ECC; Wed, 28 Feb 2024 11:48:36 +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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (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 3CE778800C for ; Wed, 28 Feb 2024 11:48:34 +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=ilias.apalodimas@linaro.org Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-412a3371133so24250765e9.2 for ; Wed, 28 Feb 2024 02:48:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709117313; x=1709722113; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0q8g5g/mbTqm5EkO78PISZ6mP9TphYlAc5QG72jqGRs=; b=cAqrbtHdZiktuxHAK2I72aKoacUYp7GU3rm+aI4hFa2EMZvY0lOYT+DxYZ8ZUw1cB6 nTwvwiYwFj1JbhIxo8c2IJXuWY4JuQQJEbldOooAluoKrx0lqPJ2hpt8DntZaIY7hHhm 88Q7wYadSbYd804/RYucRwsYr6R+h1fty4KB2hSexiue6H+bWqhro0ywbkmeAccqkOUa rLU1CQ3rDjbWkFP54YHMp2mxat2lMLxl4KPvWZldaJzpEHS/9k/iZ6sSWkviRwJBVvfb vuvZmz1MaHEmPt4ArV+Z/KOKhXcJLQDVyQtrf3+j+m08phng8SJMWgsZVL9vguHJJ7li vjcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709117313; x=1709722113; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0q8g5g/mbTqm5EkO78PISZ6mP9TphYlAc5QG72jqGRs=; b=gpzQFJaYGViPceRKvxeeO4I6x3H84Pmh3L0g78iHgmI73nAfBS/wRYcQ1sGMCInl2h 0CkxZpOF4BCYKxDiucY8YHslbwwjW1sRBIu8tcZACSwJ2dlW8nbN1YpEOzneWYl1HitO VfBNiXZ9KijjV+tIjywzivmVqFlkmrawCNAfn4VstO83xdSOtpm1goOB9NsNBkCLW52h mcs8tkxOhmSoLAWorwgRiqg3nzrs0uW0FkrGdWYB+O22bvvw23dtb6iKEuKHXOFt5GTU EXkEWc8naxExBmvpDnXfe/N0wc5S9Kv2t1P2pMDYQig6Chg65H2Od2GMsNAyyCNGSbod RiGA== X-Gm-Message-State: AOJu0YwkSR7MML73DksXq0Gi7NITTjIxCFqWJXrEg90hfvAXSgjxpPau WXw2NlKl4r6Waj+7OKiNsqmESJZYW1Bzl37sA6dH8J2gKiL/pZ7zFbTUtdXVHQcuGTdj91izIBU NxhY= X-Received: by 2002:a05:600c:138f:b0:411:a5f9:26f5 with SMTP id u15-20020a05600c138f00b00411a5f926f5mr10540473wmf.38.1709117313543; Wed, 28 Feb 2024 02:48:33 -0800 (PST) Received: from hades.. ([78.87.146.252]) by smtp.gmail.com with ESMTPSA id x1-20020a05600c2a4100b00410dd253008sm1680314wme.42.2024.02.28.02.48.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:48:33 -0800 (PST) From: Ilias Apalodimas To: u-boot@lists.denx.de, trini@konsulko.com, cfsworks@gmail.com Cc: caleb.connolly@linaro.org, sumit.garg@linaro.org, Ilias Apalodimas , Simon Glass , Philipp Tomsich , Kever Yang , Michal Simek , Jorge Ramirez-Ortiz , Yegor Yefremov , Heinrich Schuchardt , Shiji Yang , Bin Meng Subject: [RFC PATCH 1/6] arm: baltos: remove custom linker script Date: Wed, 28 Feb 2024 12:48:04 +0200 Message-Id: <20240228104811.1366694-2-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20240228104811.1366694-1-ilias.apalodimas@linaro.org> References: <20240228104811.1366694-1-ilias.apalodimas@linaro.org> 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 commit 3d74a0977f514 ("ti: am335x: Remove unused linker script") removed the linker script for the TI variant. This linker script doesn't seem to do anything special and on top of that, has no definitions for the EFI runtime sections. So let's get rid of it and use the generic linker script which defines those correctly Signed-off-by: Ilias Apalodimas Reviewed-by: Tom Rini --- board/vscom/baltos/u-boot.lds | 128 ---------------------------------- 1 file changed, 128 deletions(-) delete mode 100644 board/vscom/baltos/u-boot.lds -- 2.37.2 diff --git a/board/vscom/baltos/u-boot.lds b/board/vscom/baltos/u-boot.lds deleted file mode 100644 index cb2ee6769753..000000000000 --- a/board/vscom/baltos/u-boot.lds +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright (c) 2004-2008 Texas Instruments - * - * (C) Copyright 2002 - * Gary Jennejohn, DENX Software Engineering, - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - */ - -OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") -OUTPUT_ARCH(arm) -ENTRY(_start) -SECTIONS -{ - . = 0x00000000; - - . = ALIGN(4); - .text : - { - *(.__image_copy_start) - *(.vectors) - CPUDIR/start.o (.text*) - board/vscom/baltos/built-in.o (.text*) - *(.text*) - } - - . = ALIGN(4); - .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } - - . = ALIGN(4); - .data : { - *(.data*) - } - - . = ALIGN(4); - - . = .; - - . = ALIGN(4); - __u_boot_list : { - KEEP(*(SORT(__u_boot_list*))); - } - - . = ALIGN(4); - - .image_copy_end : - { - *(.__image_copy_end) - } - - .rel_dyn_start : - { - *(.__rel_dyn_start) - } - - .rel.dyn : { - *(.rel*) - } - - .rel_dyn_end : - { - *(.__rel_dyn_end) - } - - .hash : { *(.hash*) } - - .end : - { - *(.__end) - } - - _image_binary_end = .; - - /* - * Deprecated: this MMU section is used by pxa at present but - * should not be used by new boards/CPUs. - */ - . = ALIGN(4096); - .mmutable : { - *(.mmutable) - } - -/* - * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c - * __bss_base and __bss_limit are for linker only (overlay ordering) - */ - - .bss_start __rel_dyn_start (OVERLAY) : { - KEEP(*(.__bss_start)); - __bss_base = .; - } - - .bss __bss_base (OVERLAY) : { - *(.bss*) - . = ALIGN(4); - __bss_limit = .; - } - - .bss_end __bss_limit (OVERLAY) : { - KEEP(*(.__bss_end)); - } - - .dynsym _image_binary_end : { *(.dynsym) } - .dynbss : { *(.dynbss) } - .dynstr : { *(.dynstr*) } - .dynamic : { *(.dynamic*) } - .gnu.hash : { *(.gnu.hash) } - .plt : { *(.plt*) } - .interp : { *(.interp*) } - .gnu : { *(.gnu*) } - .ARM.exidx : { *(.ARM.exidx*) } -} From patchwork Wed Feb 28 10:48:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 776454 Delivered-To: patch@linaro.org Received: by 2002:adf:e94d:0:b0:33d:f458:43ce with SMTP id m13csp226944wrn; Wed, 28 Feb 2024 02:49:18 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXknUKQHq4cTHQxHBwiXJw/IEa7Mzcd0JmpZCVHGA84HRln7EoRq4IlWN7c4Kvf95P6QDjEkt/b6lDPOXQ53ERZ X-Google-Smtp-Source: AGHT+IEaX3fkX1sMUgRoH7E16fvtBLJBm2EfzQmS6DJ1vuc1haN4CkrD5p4A+pQdoaXmDlCv7Sil X-Received: by 2002:a05:600c:3b89:b0:412:ace8:21bd with SMTP id n9-20020a05600c3b8900b00412ace821bdmr3034500wms.6.1709117358439; Wed, 28 Feb 2024 02:49:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709117358; cv=none; d=google.com; s=arc-20160816; b=REPEVu8jsG1IgjCqBceKfHD3Utgw3iOf8KY30peBmHA2Fy5OYQ+wkaPckT5eQBgf+g DtxZEqiex5FKtqfE2t1xz7sE2SXaH9nJhLYCShLvC9RlEV12EeXmyf5oClyAkVat5tzX Z1rhB38KMOl90Iami+TkSLKyMiDqnVQtv/SOw1bQ8vTkUppsbGHVqpOF3pbVVNjNpjRg HzJF2yPl9XRb+jh4Hc8S4up8MnnRbvVXAr6ReRvuJxxHkwvIjkEFFDQzAGyUSwfsIo6E Xx4UQRV9H4u/axWTbsCQCcRkm4gdVMgruO/rghXqfO58y9zIlwm62q9a62MqHkhJWugi uLxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=R1GTVQUn09aQo/8dXfGQL60VoZCH6/FjPHxNOQTK990=; fh=Qc7Bwm8F6A6m2T1dNMTqiCGSn6FsxQ9ndhZ8EDBeZTo=; b=hoIlhfOgvafzBcEEce6O6ZC9Fd2QLV+cMDVdPb9XDAzhHkJavSOGlFFV7dwGpAxqyQ QohU9YFMZEkAh6cyO6WvmO+0Bd2DHso0VK/O+HFOXznK4IvQBnNKkXNMOLNVC0Y1HFBQ g2w41+eIj9Pgbywi1jaTGSR4nhBeQJmH8qsJo2hcu02UHiBfSqx1ZrRU1sk63efpPYSe Nh2SzfQUD0nq5btudQzriDhcFPq2YL1gdyPAqlxhXQ5HhIZ9WWgHgZXebJmSRTMfivna KT8OfoQSbNYRm8vOUAo1DLVj1vwlESc33IETV0oh3f7wddqEMGElTuUgIN/Sgs4+bVfg la0g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QOlztfsf; 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 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 d10-20020adff2ca000000b0033d13c043a8si5019096wrp.978.2024.02.28.02.49.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:49:18 -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=QOlztfsf; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 06D4488077; Wed, 28 Feb 2024 11:48:42 +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="QOlztfsf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BBF0887ECC; Wed, 28 Feb 2024 11:48:40 +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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 66C558806B for ; Wed, 28 Feb 2024 11:48:38 +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=ilias.apalodimas@linaro.org Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-412b3a69f67so3668845e9.0 for ; Wed, 28 Feb 2024 02:48:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709117318; x=1709722118; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=R1GTVQUn09aQo/8dXfGQL60VoZCH6/FjPHxNOQTK990=; b=QOlztfsfLFO69zAyiUavMtQoS5tiJXho26hDlyw0TScLHOvn1GfCZS/RvfhSc+qa7u 3gz7VuDcjckuTnQAIkwMarbL2qI+10StlSBmEm6X9+H1o4YOg6A2d5UWhZAunEhslSxU FUy8jOldoy9pdiaSO7PLLaODdnko9dTzpUMhb/dF27A2tPg/mC8aok9plRfAo4ALNw9P YCbcUL1epMUCRORGcDrf7k3gUaxchSpUJ9FwgUbRg5/nCpE94Xdithj0tCcB1HeJbP0A Bk+hPYGB8GwK4aRzduSKEsozN75gFZcSDmLdLO/qL2o7gqSHtKFmHPnwY9W8WhVXQ6i1 z4+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709117318; x=1709722118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R1GTVQUn09aQo/8dXfGQL60VoZCH6/FjPHxNOQTK990=; b=aH22EOYgWTozYQe6goEFP4PYHA/Sa5+5UwjPkrZHWr1+ay+sqcZDfwzD36jH7iO61q i3ntcwfCg38G06Cavx28Z7EV0L2648b6x258uaD598oFbdcCcS/O8MMcvSgWwfmoMxsv ngNVMNgsp8o+hPLA8x9DCxrHrCJ86tB3OxRpgabmXnZMNhkMovZVhNJCATIFj+HmWFhS /h4EdWRbeMFPi01JUAhweEd5XUxrw/bFR8jHu+PJJzQEGz5oxnOtioA5CKn6XLX8NNXG E4+kYW7kqDp9xn6anyjuWfSPjR0hej+6cEdF2t3LNXrTePAj3j1bIHqYOoxVr7q+0ptq 8XtA== X-Gm-Message-State: AOJu0YxkYaJW8noGmYaCFoq0I0MlQeBR8nCMeDYf3oNtopddGuX1p25T E54PsmVlMd8o7hwh4rqaJQY3L32v41pAh2id60zSqFQPLjLLW8qq3adyaMR/bevOt0dfQ3rS03Z qmYw= X-Received: by 2002:a05:600c:5592:b0:412:6de0:69a9 with SMTP id jp18-20020a05600c559200b004126de069a9mr8121961wmb.39.1709117317722; Wed, 28 Feb 2024 02:48:37 -0800 (PST) Received: from hades.. ([78.87.146.252]) by smtp.gmail.com with ESMTPSA id x1-20020a05600c2a4100b00410dd253008sm1680314wme.42.2024.02.28.02.48.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:48:37 -0800 (PST) From: Ilias Apalodimas To: u-boot@lists.denx.de, trini@konsulko.com, cfsworks@gmail.com Cc: caleb.connolly@linaro.org, sumit.garg@linaro.org, Ilias Apalodimas , Simon Glass , Philipp Tomsich , Kever Yang , Michal Simek , Jorge Ramirez-Ortiz , Yegor Yefremov , Heinrich Schuchardt , Shiji Yang , Bin Meng Subject: [RFC PATCH 2/6] arm: clean up v7 and v8 linker scripts for bss_start/end Date: Wed, 28 Feb 2024 12:48:05 +0200 Message-Id: <20240228104811.1366694-3-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20240228104811.1366694-1-ilias.apalodimas@linaro.org> References: <20240228104811.1366694-1-ilias.apalodimas@linaro.org> 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 commit 3ebd1cbc49f0 ("arm: make __bss_start and __bss_end__ compiler-generated") and commit f84a7b8f54db ("ARM: Fix __bss_start and __bss_end in linker scripts") were moving the bss_start/end on c generated variables that were injected in their own sections. The reason was that we needed relative relocations for position independent code. However, the linker documentation pages states that symbols that are defined within a section definition will create a relocatable type with the value being a fixed offset from the base of a section. So let's start cleaning this up starting with the bss_start and bss_end variables. Convert them into symbols within the .bss section definition. [0] https://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_mono/ld.html#SEC13 Signed-off-by: Ilias Apalodimas Tested-by: Caleb Connolly # Qualcomm sdm845 --- arch/arm/cpu/armv8/u-boot-spl.lds | 14 +++----------- arch/arm/cpu/armv8/u-boot.lds | 15 +++------------ arch/arm/cpu/u-boot.lds | 22 ++++------------------ arch/arm/lib/sections.c | 2 -- arch/arm/mach-rockchip/u-boot-tpl-v8.lds | 14 +++----------- arch/arm/mach-zynq/u-boot.lds | 21 +++------------------ board/qualcomm/dragonboard820c/u-boot.lds | 15 +++------------ 7 files changed, 19 insertions(+), 84 deletions(-) -- 2.37.2 diff --git a/arch/arm/cpu/armv8/u-boot-spl.lds b/arch/arm/cpu/armv8/u-boot-spl.lds index 7cb9d731246d..16fddb46e9cb 100644 --- a/arch/arm/cpu/armv8/u-boot-spl.lds +++ b/arch/arm/cpu/armv8/u-boot-spl.lds @@ -63,18 +63,10 @@ SECTIONS _image_binary_end = .; - .bss_start (NOLOAD) : { - . = ALIGN(8); - KEEP(*(.__bss_start)); - } >.sdram - - .bss (NOLOAD) : { + .bss : { + __bss_start = .; *(.bss*) - . = ALIGN(8); - } >.sdram - - .bss_end (NOLOAD) : { - KEEP(*(.__bss_end)); + __bss_end = .; } >.sdram /DISCARD/ : { *(.rela*) } diff --git a/arch/arm/cpu/armv8/u-boot.lds b/arch/arm/cpu/armv8/u-boot.lds index fb6a30c922f7..c4ee10ebc3ff 100644 --- a/arch/arm/cpu/armv8/u-boot.lds +++ b/arch/arm/cpu/armv8/u-boot.lds @@ -149,19 +149,10 @@ SECTIONS _end = .; - . = ALIGN(8); - - .bss_start : { - KEEP(*(.__bss_start)); - } - - .bss : { + .bss ALIGN(8): { + __bss_start = .; *(.bss*) - . = ALIGN(8); - } - - .bss_end : { - KEEP(*(.__bss_end)); + __bss_end = .; } /DISCARD/ : { *(.dynsym) } diff --git a/arch/arm/cpu/u-boot.lds b/arch/arm/cpu/u-boot.lds index 7724c9332c3b..90d329b1ebe0 100644 --- a/arch/arm/cpu/u-boot.lds +++ b/arch/arm/cpu/u-boot.lds @@ -206,27 +206,13 @@ SECTIONS *(.mmutable) } -/* - * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c - * __bss_base and __bss_limit are for linker only (overlay ordering) - */ - - .bss_start __rel_dyn_start (OVERLAY) : { - KEEP(*(.__bss_start)); - __bss_base = .; - } - - .bss __bss_base (OVERLAY) : { + .bss ALIGN(4): { + __bss_start = .; *(.bss*) - . = ALIGN(4); - __bss_limit = .; - } - - .bss_end __bss_limit (OVERLAY) : { - KEEP(*(.__bss_end)); + __bss_end = .; } - .dynsym _image_binary_end : { *(.dynsym) } + .dynsym : { *(.dynsym) } .dynbss : { *(.dynbss) } .dynstr : { *(.dynstr*) } .dynamic : { *(.dynamic*) } diff --git a/arch/arm/lib/sections.c b/arch/arm/lib/sections.c index 857879711c6a..8e8bd5797e16 100644 --- a/arch/arm/lib/sections.c +++ b/arch/arm/lib/sections.c @@ -19,8 +19,6 @@ * aliasing warnings. */ -char __bss_start[0] __section(".__bss_start"); -char __bss_end[0] __section(".__bss_end"); char __image_copy_start[0] __section(".__image_copy_start"); char __image_copy_end[0] __section(".__image_copy_end"); char __rel_dyn_start[0] __section(".__rel_dyn_start"); diff --git a/arch/arm/mach-rockchip/u-boot-tpl-v8.lds b/arch/arm/mach-rockchip/u-boot-tpl-v8.lds index 74618eba591b..b7887194026e 100644 --- a/arch/arm/mach-rockchip/u-boot-tpl-v8.lds +++ b/arch/arm/mach-rockchip/u-boot-tpl-v8.lds @@ -56,18 +56,10 @@ SECTIONS _image_binary_end = .; - .bss_start (NOLOAD) : { - . = ALIGN(8); - KEEP(*(.__bss_start)); - } - - .bss (NOLOAD) : { + .bss ALIGN(8) : { + __bss_start = .; *(.bss*) - . = ALIGN(8); - } - - .bss_end (NOLOAD) : { - KEEP(*(.__bss_end)); + __bss_end = .; } /DISCARD/ : { *(.dynsym) } diff --git a/arch/arm/mach-zynq/u-boot.lds b/arch/arm/mach-zynq/u-boot.lds index 3b7c9d515f8b..8d3259821719 100644 --- a/arch/arm/mach-zynq/u-boot.lds +++ b/arch/arm/mach-zynq/u-boot.lds @@ -102,26 +102,11 @@ SECTIONS _image_binary_end = .; -/* - * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c - * __bss_base and __bss_limit are for linker only (overlay ordering) - */ - - .bss_start __rel_dyn_start (OVERLAY) : { - KEEP(*(.__bss_start)); - __bss_base = .; - } - - .bss __bss_base (OVERLAY) : { + .bss ALIGN(4): { + __bss_start = .; *(.bss*) - . = ALIGN(8); - __bss_limit = .; - } - - .bss_end __bss_limit (OVERLAY) : { - KEEP(*(.__bss_end)); + __bss_end = .; } - /* * Zynq needs to discard these sections because the user * is expected to pass this image on to tools for boot.bin diff --git a/board/qualcomm/dragonboard820c/u-boot.lds b/board/qualcomm/dragonboard820c/u-boot.lds index 5251b59fbe76..d3cc5278b610 100644 --- a/board/qualcomm/dragonboard820c/u-boot.lds +++ b/board/qualcomm/dragonboard820c/u-boot.lds @@ -87,19 +87,10 @@ SECTIONS _end = .; - . = ALIGN(8); - - .bss_start : { - KEEP(*(.__bss_start)); - } - - .bss : { + .bss ALIGN(8): { + __bss_start = .; *(.bss*) - . = ALIGN(8); - } - - .bss_end : { - KEEP(*(.__bss_end)); + __bss_end = .; } /DISCARD/ : { *(.dynsym) } From patchwork Wed Feb 28 10:48:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 776455 Delivered-To: patch@linaro.org Received: by 2002:adf:e94d:0:b0:33d:f458:43ce with SMTP id m13csp226965wrn; Wed, 28 Feb 2024 02:49:24 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUaeo1QvZiXIAb22Ey4Ppa4UabwyjnVearJ1S1qFqZu107KJ7HJBdtL4ZaH4/qjqXICuodKfAa8lyOXkkyO9J7L X-Google-Smtp-Source: AGHT+IH3uxiANVxAVHkiRrVF/NYfI+LF1FxhiWDDZNjuyDhmdy/rYM6JqhD9Ly6Egu78hF8AusPz X-Received: by 2002:a2e:b8c7:0:b0:2d2:64ef:9be9 with SMTP id s7-20020a2eb8c7000000b002d264ef9be9mr8774515ljp.50.1709117364451; Wed, 28 Feb 2024 02:49:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709117364; cv=none; d=google.com; s=arc-20160816; b=CAljmlIuEIdJlqdq2EQJkqYHu1a2kps2sDe4CWANJOHhrkH47fTnZVerc+Ttif+ne6 Paedfw0s+WRQnpD5ENPiDyBgoBryWP70szz/XUklKxvGMWjm9zaVWFeKDVz265+TM17S LmXODbeKW1PUSa7rK+Vk6ddlEMWILP6Mtj5NuEFz9ZPKG5RIeNaJvOK2gJYtHA6PIKg5 QJ5wz4tQezKjrjdeEQI/UGz+lmGWmpi9s8VtiQqNh9wT5YTYa38EseMDXAlqDg0LVoiD 643ZyKIW8+tfFL380KrLzvNfQ5zXA58OmTsW3Gb4lcLSn4o1A+EJOqhIflPwObWinrrC niRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uCjEZk+hn7YNvUHPw/I6m4Ni9W92nQmew7vxuOthRyA=; fh=Qc7Bwm8F6A6m2T1dNMTqiCGSn6FsxQ9ndhZ8EDBeZTo=; b=cHYxV/lnDnptOxuW+dh1qGE/Tmpp4m+1YJJwTq7zX8mHOWVCUXIC0uipvPA8iTvCWZ kyBccHRpwlQVA8mMlfEnSR4URCQmCIMUkYZkdVXLYrVjjoL/i6G+LRYb6cMuvn2Rozjh r5/N+j6DRJIY0R0BBm3KvEIagr99IrWcqFkB1TRUBwLD3u71Y9BwvZ8jjtGBArQPonnQ NA6W7dhqC1HW8IXWsQgGKByObxdb8V4Y7TRh2TzQZgDd/kV6MvRElyMVJHz4PQ7BMeC4 AyHhS/NBnFQMkuFYvJ74nn17aF0MLrLhhQbv0VDA0emWbrgSZ6xIEzaijbOjPp73WlWi aVZA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FJRMU1uc; 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 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 u6-20020a05600c19c600b00412a33731c8si696889wmq.202.2024.02.28.02.49.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:49:24 -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=FJRMU1uc; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8F8FC88026; Wed, 28 Feb 2024 11:48:47 +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="FJRMU1uc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CA54B88007; Wed, 28 Feb 2024 11:48:45 +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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) (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 B04468807C for ; Wed, 28 Feb 2024 11:48:42 +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=ilias.apalodimas@linaro.org Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2d2305589a2so75605461fa.1 for ; Wed, 28 Feb 2024 02:48:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709117322; x=1709722122; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uCjEZk+hn7YNvUHPw/I6m4Ni9W92nQmew7vxuOthRyA=; b=FJRMU1ucFh0EprrSU+gO16Z0QSOgpOhEpvFhoR49GGTJM4e1XhM5FEXp1kXDMq8rjI jDmXSwAcEffyWp2WmUfLPbZKO0dEKyDtdHUf7xM1syJAP/l6ezZ+krX7Qe9Stop5FuE+ GitaOZKRzUIYkDr40dxJ8yABygrBAD6cQW7iiR/7n3NrB6rO6nLO38Lo2cWm0L+YSYg9 ExIy+5vLXsOQBeVvQfZkCgN4FylIwn7BO8a27qc0JG5Y2iis58JNSFlzb3g9NDd+k/4H 0CUi9mj0rLLIniugNrZh97J8GswrY+KYiqRKSLgwGQfAUJf0fuA3IzEZSZLL/oKsiMP8 bxbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709117322; x=1709722122; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uCjEZk+hn7YNvUHPw/I6m4Ni9W92nQmew7vxuOthRyA=; b=NH1VPGxk2WjhNVosXb18loGHTXbK0OfID2VJs7+9Wyy4+rgPSEylaoAKLnBJBbVWTN AyF4qdd+EwcRahd6UUndyo+LX9ezJakM2tQPG2hgL8Nu9SiJWJISw1ADveT775WM8EoW 94zfjXX+RUxIO+Tuzp5yV1l+lyB/+6ngmDvY0vgGy0KxIijU2uZrUb+TepzF6vxlDGuK 04h+vi6MJd0lG7vXcMqhBHmQd2LP/EJjwrDs9DUVbZBuDubdbT+J72H9IvhsVLkWS5zH 93bEIvT1HLZ2eTPDsqHZi17PmAcsKxO4NcozxPreV+5FifaDRpwgeHjFhcezX17CcEy2 Jprw== X-Gm-Message-State: AOJu0Yw569i5L7X3q3iZa7FNT1wGjfam1pYd3vYnyM03DhM02pEdyYSh m1mlRIqa25BEKskwGWs4lbzYTnkETqirkTPy0sDju6hpxWGc6wxWc5YsoDwUQH1wQm5ffraHeJN WKpQ= X-Received: by 2002:a2e:8e90:0:b0:2d2:2e7a:e070 with SMTP id z16-20020a2e8e90000000b002d22e7ae070mr7500431ljk.10.1709117321898; Wed, 28 Feb 2024 02:48:41 -0800 (PST) Received: from hades.. ([78.87.146.252]) by smtp.gmail.com with ESMTPSA id x1-20020a05600c2a4100b00410dd253008sm1680314wme.42.2024.02.28.02.48.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:48:41 -0800 (PST) From: Ilias Apalodimas To: u-boot@lists.denx.de, trini@konsulko.com, cfsworks@gmail.com Cc: caleb.connolly@linaro.org, sumit.garg@linaro.org, Ilias Apalodimas , Simon Glass , Philipp Tomsich , Kever Yang , Michal Simek , Jorge Ramirez-Ortiz , Yegor Yefremov , Heinrich Schuchardt , Shiji Yang , Bin Meng Subject: [RFC PATCH 3/6] arm: fix __efi_runtime_rel_start/end definitions Date: Wed, 28 Feb 2024 12:48:06 +0200 Message-Id: <20240228104811.1366694-4-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20240228104811.1366694-1-ilias.apalodimas@linaro.org> References: <20240228104811.1366694-1-ilias.apalodimas@linaro.org> 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 __efi_runtime_rel_start/end are defined as c variables for arm7 only in order to force the compiler emit relative references. However, defining those within a section definition will do the same thing. On top of that the v8 linker scripts define it as a symbol. So let's remove the special sections from the linker scripts, the variable definitions from sections.c and define them as a symbols within the correct section. Signed-off-by: Ilias Apalodimas --- arch/arm/cpu/armv8/u-boot.lds | 4 +--- arch/arm/cpu/u-boot.lds | 16 +++------------- arch/arm/lib/sections.c | 2 -- arch/arm/mach-zynq/u-boot.lds | 16 +++------------- include/asm-generic/sections.h | 2 ++ lib/efi_loader/efi_runtime.c | 1 + 6 files changed, 10 insertions(+), 31 deletions(-) -- 2.37.2 diff --git a/arch/arm/cpu/armv8/u-boot.lds b/arch/arm/cpu/armv8/u-boot.lds index c4ee10ebc3ff..eccb116d3cfa 100644 --- a/arch/arm/cpu/armv8/u-boot.lds +++ b/arch/arm/cpu/armv8/u-boot.lds @@ -115,9 +115,7 @@ SECTIONS KEEP(*(SORT(__u_boot_list*))); } - . = ALIGN(8); - - .efi_runtime_rel : { + .efi_runtime_rel ALIGN(8) : { __efi_runtime_rel_start = .; *(.rel*.efi_runtime) *(.rel*.efi_runtime.*) diff --git a/arch/arm/cpu/u-boot.lds b/arch/arm/cpu/u-boot.lds index 90d329b1ebe0..70e78ce46672 100644 --- a/arch/arm/cpu/u-boot.lds +++ b/arch/arm/cpu/u-boot.lds @@ -152,21 +152,11 @@ SECTIONS KEEP(*(SORT(__u_boot_list*))); } - . = ALIGN(4); - - .efi_runtime_rel_start : - { - *(.__efi_runtime_rel_start) - } - - .efi_runtime_rel : { + .efi_runtime_rel ALIGN(4) : { + __efi_runtime_rel_start = .; *(.rel*.efi_runtime) *(.rel*.efi_runtime.*) - } - - .efi_runtime_rel_stop : - { - *(.__efi_runtime_rel_stop) + __efi_runtime_rel_stop = .; } . = ALIGN(4); diff --git a/arch/arm/lib/sections.c b/arch/arm/lib/sections.c index 8e8bd5797e16..ddfde52163fc 100644 --- a/arch/arm/lib/sections.c +++ b/arch/arm/lib/sections.c @@ -29,6 +29,4 @@ char __secure_stack_start[0] __section(".__secure_stack_start"); char __secure_stack_end[0] __section(".__secure_stack_end"); char __efi_runtime_start[0] __section(".__efi_runtime_start"); char __efi_runtime_stop[0] __section(".__efi_runtime_stop"); -char __efi_runtime_rel_start[0] __section(".__efi_runtime_rel_start"); -char __efi_runtime_rel_stop[0] __section(".__efi_runtime_rel_stop"); char _end[0] __section(".__end"); diff --git a/arch/arm/mach-zynq/u-boot.lds b/arch/arm/mach-zynq/u-boot.lds index 8d3259821719..66a9e37f9198 100644 --- a/arch/arm/mach-zynq/u-boot.lds +++ b/arch/arm/mach-zynq/u-boot.lds @@ -58,21 +58,11 @@ SECTIONS KEEP(*(SORT(__u_boot_list*))); } - . = ALIGN(4); - - .efi_runtime_rel_start : - { - *(.__efi_runtime_rel_start) - } - - .efi_runtime_rel : { + .efi_runtime_rel ALIGN(4) : { + __efi_runtime_rel_start = .; *(.rel*.efi_runtime) *(.rel*.efi_runtime.*) - } - - .efi_runtime_rel_stop : - { - *(.__efi_runtime_rel_stop) + __efi_runtime_rel_stop = .; } . = ALIGN(8); diff --git a/include/asm-generic/sections.h b/include/asm-generic/sections.h index 1e1657a01673..60949200dd93 100644 --- a/include/asm-generic/sections.h +++ b/include/asm-generic/sections.h @@ -34,6 +34,8 @@ extern char __priv_data_start[], __priv_data_end[]; /* Start and end of .ctors section - used for constructor calls. */ extern char __ctors_start[], __ctors_end[]; +extern char __efi_runtime_rel_start[], __efi_runtime_rel_stop[]; + /* function descriptor handling (if any). Override * in asm/sections.h */ #ifndef dereference_function_descriptor diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index 18da6892e796..9185f1894c47 100644 --- a/lib/efi_loader/efi_runtime.c +++ b/lib/efi_loader/efi_runtime.c @@ -15,6 +15,7 @@ #include #include #include +#include /* For manual relocation support */ DECLARE_GLOBAL_DATA_PTR; From patchwork Wed Feb 28 10:48:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 776456 Delivered-To: patch@linaro.org Received: by 2002:adf:e94d:0:b0:33d:f458:43ce with SMTP id m13csp227033wrn; Wed, 28 Feb 2024 02:49:41 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVz0Zb6zfD2VgeyTSXlU56Nh0E7JgzQw/RD30EPhPGtGvwkW/Z3ZVWAjLJr+a07bt02sFAf8ayxt9P+sNAfDEBP X-Google-Smtp-Source: AGHT+IGXgFRjaSY18HvVILqhY7fw/XcG87kHLe8weTQPt60LIprBCkcV6iWClhRfBR2g4TAsuTBW X-Received: by 2002:adf:f350:0:b0:33d:855d:7457 with SMTP id e16-20020adff350000000b0033d855d7457mr8805484wrp.21.1709117381180; Wed, 28 Feb 2024 02:49:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709117381; cv=none; d=google.com; s=arc-20160816; b=C62gB7iCT0BFCw/XBXX970ufVFcKezX8v628qgg7FCpGrcSrpStrAoeaO17JyuVQcx OI/xHZI5FPh6sllIoZcVhrt2ot6IrTw2gTuorHY1qJ1qQ2WmIqlOI8dUTWME6e5mDisn nL1wAPG3nmLX269+OfgTvE95TKP2pK9JXIMeleVyZ7E0Eg2CdSBgELDkORMeX/HqLcBx tmnp3ckYHuiaRPFbofbnS6XSkLZP8D1ix9LYRTrSmx8pJ+1euZXNIBtf22UiFo69o+QE eaH8tkfY0y5ea/SHHFRNd8U7QNlqzlEPDiyBYeCyQSehWuaFBBZ0qiFSBZtogVbxvdBB c8zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Scgc+pVaetDvc+SLTh0OKeKO+CQU57WdE9jfttywvow=; fh=Qc7Bwm8F6A6m2T1dNMTqiCGSn6FsxQ9ndhZ8EDBeZTo=; b=C4Z71Bxa6/RGM8h9WB2+XYaiqpwB7W7qZZB3USzQBmmYnVOJux/Ks903WQKSGYi/Iw VLENdEhfZHrJSg+Mf9N45v1pNr5iO3lCyWWsGrl3j6EaD75xReofErdxid01KmDNaiH9 6KEpX53BLbBPzqA5r2x/KX3Ih5qEJoLdduqyZ0+PBAvmLyXCB6CWJXojFsHknK0sUtI+ UqPfIda9UQGh61c7TfL4Cx1rtSuI3oOAibSrI3cJMlUy02JFuPXGoaHw1B/dHQo9mNet sPQGewpdDt8MzTHOpH0mll8clJnlBEwTTBygadny2mSj2l0H6aVLIrVU03YB68yVyEw5 WrOw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YYZqVqND; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id q13-20020a5d61cd000000b0033de4c3379asi2650858wrv.814.2024.02.28.02.49.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:49:41 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YYZqVqND; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2D9EC8808A; Wed, 28 Feb 2024 11:48:55 +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="YYZqVqND"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7541288007; Wed, 28 Feb 2024 11:48:51 +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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (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 B432587ECC for ; Wed, 28 Feb 2024 11:48:46 +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=ilias.apalodimas@linaro.org Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-5131c48055cso405158e87.1 for ; Wed, 28 Feb 2024 02:48:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709117326; x=1709722126; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Scgc+pVaetDvc+SLTh0OKeKO+CQU57WdE9jfttywvow=; b=YYZqVqNDO+c63pE/VbrCrrw7IM+U4QuIhmOHpWtUgm0QlbFEv4HLUFVkpyRQ1WNMdT uKlWU31RO/8+mwpD4jCUYgQSSelQbAUKjp7WMj3chdM1qSwu//H5sBsrKLJr4zzMpOYK L6xnGEFAHZmwpI83mHzDvQsfugQap2sRGhzBsMluX6JyVF87rMs3uRwIx7LD3Ze1u4F9 Fcyeh5CVJ8thBkqLW+g1dtrDTEjnAU3FUn0d7rggGKMO2km+mwVtuQXQjQLo76yCawWg YF3WM54eyC7LoCBHKUaxmMEkx23/xuD+UUH6OSM4xaYciiBo32mDHhIiMi58mduxHkH4 0Nng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709117326; x=1709722126; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Scgc+pVaetDvc+SLTh0OKeKO+CQU57WdE9jfttywvow=; b=bhU9Hd7nS06b2t6Kdi3DqcgV+9bWIwnUJGs93843M/FlbVEALrWdn+pAGQE30ER5D/ zVhanV7CfI18XvkDNO3+aDhzpmOsnbwqMpIBIAmITLGeTZClFGvfJ2LeAGrSMbo3wkdG INVz6Xm39Pwk8COVj9tgYNIlmrnAkhslqicX212Sk2dI5DrqEdV2zyNxEDRWi6Ka7dZd i0rl6xe6U2qAexcJAKybuF5SDXqbso1GQyRRwawmQLetxh0IJl+/uthnP9LgyboQz61d FHH3oVm0oH+s5DofpUiwg49da795z807CDDmxSuC0dJfue7Z7Hq1kY3Ap/V6UdO0vEdF +QNQ== X-Gm-Message-State: AOJu0YygsPL4jRzliwCgGrLyQKghkY752cWzsg06FZh07QCnSPDIRub9 FbhpnFjCFHKPO8Pr/0Z+2wkj4/l3lmUyd0ErvTMDef56vtUdEGztOJPAuNtSDlx8fh60TF2CEVS w6mo= X-Received: by 2002:a19:644d:0:b0:512:b075:7299 with SMTP id b13-20020a19644d000000b00512b0757299mr7873900lfj.35.1709117326056; Wed, 28 Feb 2024 02:48:46 -0800 (PST) Received: from hades.. ([78.87.146.252]) by smtp.gmail.com with ESMTPSA id x1-20020a05600c2a4100b00410dd253008sm1680314wme.42.2024.02.28.02.48.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:48:45 -0800 (PST) From: Ilias Apalodimas To: u-boot@lists.denx.de, trini@konsulko.com, cfsworks@gmail.com Cc: caleb.connolly@linaro.org, sumit.garg@linaro.org, Ilias Apalodimas , Simon Glass , Philipp Tomsich , Kever Yang , Michal Simek , Jorge Ramirez-Ortiz , Yegor Yefremov , Heinrich Schuchardt , Shiji Yang , Bin Meng Subject: [RFC PATCH 4/6] arm: clean up v7 and v8 linker scripts for __rel_dyn_start/end Date: Wed, 28 Feb 2024 12:48:07 +0200 Message-Id: <20240228104811.1366694-5-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20240228104811.1366694-1-ilias.apalodimas@linaro.org> References: <20240228104811.1366694-1-ilias.apalodimas@linaro.org> 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 commit 47bd65ef057f ("arm: make __rel_dyn_{start, end} compiler-generated") were moving the __rel_dyn_start/end on c generated variables that were injected in their own sections. The reason was that we needed relative relocations for position independent code. However, the linker documentation pages states that symbols that are defined within a section definition will create a relocatable type with the value being a fixed offset from the base of a section [0]. [0] https://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_mono/ld.html#SEC13 Signed-off-by: Ilias Apalodimas --- arch/arm/cpu/armv8/u-boot.lds | 16 +++------------- arch/arm/cpu/u-boot.lds | 14 +++----------- arch/arm/lib/sections.c | 2 -- arch/arm/mach-zynq/u-boot.lds | 14 +++----------- board/qualcomm/dragonboard820c/u-boot.lds | 15 +++------------ 5 files changed, 12 insertions(+), 49 deletions(-) -- 2.37.2 diff --git a/arch/arm/cpu/armv8/u-boot.lds b/arch/arm/cpu/armv8/u-boot.lds index eccb116d3cfa..e737de761a9d 100644 --- a/arch/arm/cpu/armv8/u-boot.lds +++ b/arch/arm/cpu/armv8/u-boot.lds @@ -129,20 +129,10 @@ SECTIONS *(.__image_copy_end) } - . = ALIGN(8); - - .rel_dyn_start : - { - *(.__rel_dyn_start) - } - - .rela.dyn : { + .rela.dyn ALIGN(8) : { + __rel_dyn_start = .; *(.rela*) - } - - .rel_dyn_end : - { - *(.__rel_dyn_end) + __rel_dyn_end = .; } _end = .; diff --git a/arch/arm/cpu/u-boot.lds b/arch/arm/cpu/u-boot.lds index 70e78ce46672..7c6e7891d360 100644 --- a/arch/arm/cpu/u-boot.lds +++ b/arch/arm/cpu/u-boot.lds @@ -166,18 +166,10 @@ SECTIONS *(.__image_copy_end) } - .rel_dyn_start : - { - *(.__rel_dyn_start) - } - - .rel.dyn : { + .rel.dyn ALIGN(4) : { + __rel_dyn_start = .; *(.rel*) - } - - .rel_dyn_end : - { - *(.__rel_dyn_end) + __rel_dyn_end = .; } .end : diff --git a/arch/arm/lib/sections.c b/arch/arm/lib/sections.c index ddfde52163fc..1ee3dd3667ba 100644 --- a/arch/arm/lib/sections.c +++ b/arch/arm/lib/sections.c @@ -21,8 +21,6 @@ char __image_copy_start[0] __section(".__image_copy_start"); char __image_copy_end[0] __section(".__image_copy_end"); -char __rel_dyn_start[0] __section(".__rel_dyn_start"); -char __rel_dyn_end[0] __section(".__rel_dyn_end"); char __secure_start[0] __section(".__secure_start"); char __secure_end[0] __section(".__secure_end"); char __secure_stack_start[0] __section(".__secure_stack_start"); diff --git a/arch/arm/mach-zynq/u-boot.lds b/arch/arm/mach-zynq/u-boot.lds index 66a9e37f9198..71dea4a1f60a 100644 --- a/arch/arm/mach-zynq/u-boot.lds +++ b/arch/arm/mach-zynq/u-boot.lds @@ -71,18 +71,10 @@ SECTIONS *(.__image_copy_end) } - .rel_dyn_start : - { - *(.__rel_dyn_start) - } - - .rel.dyn : { + .rel.dyn ALIGN(8) : { + __rel_dyn_start = .; *(.rel*) - } - - .rel_dyn_end : - { - *(.__rel_dyn_end) + __rel_dyn_end = .; } .end : diff --git a/board/qualcomm/dragonboard820c/u-boot.lds b/board/qualcomm/dragonboard820c/u-boot.lds index d3cc5278b610..2969f139bfd2 100644 --- a/board/qualcomm/dragonboard820c/u-boot.lds +++ b/board/qualcomm/dragonboard820c/u-boot.lds @@ -69,20 +69,11 @@ SECTIONS *(.__image_copy_end) } - . = ALIGN(8); - - .rel_dyn_start : - { - *(.__rel_dyn_start) - } - .rela.dyn : { + .rela.dyn ALIGN(8) : { + __rel_dyn_start = .; *(.rela*) - } - - .rel_dyn_end : - { - *(.__rel_dyn_end) + __rel_dyn_end = .; } _end = .; From patchwork Wed Feb 28 10:48:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 776457 Delivered-To: patch@linaro.org Received: by 2002:adf:e94d:0:b0:33d:f458:43ce with SMTP id m13csp227133wrn; Wed, 28 Feb 2024 02:50:06 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVMlU9GrC0jhL+X5mucf90OVXIQtcnQiSHFhXtXZsYJzLSVTvpoTJ9uR8xNXQkfgxlMyuoMaYFPv94w0IulIpdV X-Google-Smtp-Source: AGHT+IG1R2qPmujyO0WKWrTJDzGotldYXtrmyZayJ8zmi6soqOhX7XVj0YB6PDmRhE+8PW5WtvkU X-Received: by 2002:a05:600c:5021:b0:412:a451:d32f with SMTP id n33-20020a05600c502100b00412a451d32fmr6620459wmr.20.1709117406269; Wed, 28 Feb 2024 02:50:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709117406; cv=none; d=google.com; s=arc-20160816; b=t2l3wx1O2N0AzYZxWQGWzaQOFbNT589U8tcmnwZupt+YTTaXVWuidc4FiWg6i3tE4l Kj2n1sfp3P1nyDJA0kxe89zOPgIFYOk4LcZn1jgXhM/SyN+gOfs/bJUDiVvOhXkTI3iA rnKHiOliQ8snNKyOojdl3TayNX4Xy+TL67fkBQK9JOtlzOZe3d4G3zuADPDg5S86J6Sf OMBV3RH08UavvEJXyTiNJf0roO4Dnz2Edn4TlT9/MXn7XKXAdkrkKwef3qxucOssE14U hLviaTB/pxPlgoh5OYKRoXHNiDFZx7xEajEigIKlK7ubXLbAuXmet8uOjDpDazzxl3PQ TAgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BKKm1T6gVHFqZLotspT9wUJpiU11Yz1hR1t56PvKfWo=; fh=Qc7Bwm8F6A6m2T1dNMTqiCGSn6FsxQ9ndhZ8EDBeZTo=; b=GALbGX7yWYv4ZP7sn3ydXUoSHQhfBvvjFPkXxQjIBf+h6uIKlaN63HETa5L38Si90Y SvEoroC4hZ25/bBMlRo7J1i0wcC2Qdkt+DWh7LL2xcVbDBwOxMzUtOYh3z8aJeYWaZ8M w7/hfY4xOR9h80qDw8KZkS2lQUvxQZx5cGvuq4vuXVC4QJrP3xP0nnj5gc9w91UrAr5s nNZhVD44ZPMiQzP3c6/+3MZtYnCDOkEkwJ3om/TqW1uMHvXmOCl/b5Xb7KoPoWyeBcuP BQbQGWh8Yr+gtF4E9wfWUlR9hNYiPHIhhcDZdI1ppjQ44VuBsLqArdyDnt9dq/8F6TKM uUrg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YMtrQtOR; 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 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 y21-20020a1c4b15000000b00412ae3762b6si694518wma.233.2024.02.28.02.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:50:06 -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=YMtrQtOR; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BD5598808F; Wed, 28 Feb 2024 11:48:56 +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="YMtrQtOR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 54C7A8807F; Wed, 28 Feb 2024 11:48:55 +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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (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 9CAE387D6B for ; Wed, 28 Feb 2024 11:48:51 +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=ilias.apalodimas@linaro.org Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2d23d301452so72888781fa.1 for ; Wed, 28 Feb 2024 02:48:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709117330; x=1709722130; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BKKm1T6gVHFqZLotspT9wUJpiU11Yz1hR1t56PvKfWo=; b=YMtrQtORRocxykgDgayKmDy63p7afPYKA1YiwuX/v8/PI4FcO7d6bcieLiIdFTATU2 OhdqrTzGNaidDAmUn9lMG8UQMaWXLRWMg6A+Zgh9WXfmTovQSzTRsa82L/WmgK8Pvje4 m3Sf1MORlsncc0QIcOUU2ta+mkMACmlYcwOvFgYbr6Iwi4LA4kIIho0e+YkJ7WSbPQ7h Zgoo5O22hMcIe6WnFWO1ZegNzLwaSF5GUKFjAE/hmIMJbvhD9AzVnPNU5AdRni9xQ6lA 3SOHXd6AhfIm7dDwJV/97Zl61eP6Ik4NO4Y+J6rwvLR9jMLBfuwUrnl+3tg7L/jl9q2u rShw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709117330; x=1709722130; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BKKm1T6gVHFqZLotspT9wUJpiU11Yz1hR1t56PvKfWo=; b=SfT2nP4cylAZO1ZeO1DwLtP3KUN8Q9Y/Mq0AtoLfFDf6vhV3B/eMc2jP3qU3x3iIoL zjeYYXtLPrjcgiLjBA0k1ts0JDbXwShVtWa45WQyGrF9hACvSyDVhvIYhXc2C3HPGN34 PoVCTQosL90YeX3V3VSQUfLcCavIsKVCNlBeSZf/8NHxeAkto5li8U6yJp7xXbHl8mlT oz3knnSl0fkBgLXt+d+79wHSj6FcoLWXHQv6qySVwEVMAUUpgV1nTwTtydRDfvFw100r cv4iwMpmr+vRfhJDwSUd4HkpW9I9PNoUPLRouZtduBH06pA4QSYlX5x2kJVlEWKDGV1s LWDA== X-Gm-Message-State: AOJu0YxfRB8TByXaMglY5LI4NaGsyn2BZEYUsmeRcD7xWoVv1CoDKzyV cvm878MWcqVbPjsnOiZgC9uy+W3tyT9/GHnwHf4ojgwi1qzjrT0XEfO6cifQghL0NlNaZ5dBN4l Z1Iw= X-Received: by 2002:a2e:9586:0:b0:2d2:b68f:661 with SMTP id w6-20020a2e9586000000b002d2b68f0661mr1096927ljh.28.1709117330199; Wed, 28 Feb 2024 02:48:50 -0800 (PST) Received: from hades.. ([78.87.146.252]) by smtp.gmail.com with ESMTPSA id x1-20020a05600c2a4100b00410dd253008sm1680314wme.42.2024.02.28.02.48.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:48:49 -0800 (PST) From: Ilias Apalodimas To: u-boot@lists.denx.de, trini@konsulko.com, cfsworks@gmail.com Cc: caleb.connolly@linaro.org, sumit.garg@linaro.org, Ilias Apalodimas , Simon Glass , Philipp Tomsich , Kever Yang , Michal Simek , Jorge Ramirez-Ortiz , Yegor Yefremov , Heinrich Schuchardt , Shiji Yang , Bin Meng Subject: [RFC PATCH 5/6] arm: fix __efi_runtime_start/end definitions Date: Wed, 28 Feb 2024 12:48:08 +0200 Message-Id: <20240228104811.1366694-6-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20240228104811.1366694-1-ilias.apalodimas@linaro.org> References: <20240228104811.1366694-1-ilias.apalodimas@linaro.org> 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 __efi_runtime_start/end are defined as c variables for arm7 only in order to force the compiler emit relative references. However, defining those within a section definition will do the same thing. On top of that the v8 linker scripts define it as a symbol. So let's remove the special sections from the linker scripts, the variable definitions from sections.c and define them as a symbols within the correct section. Signed-off-by: Ilias Apalodimas --- arch/arm/cpu/u-boot.lds | 12 +++--------- arch/arm/lib/sections.c | 2 -- arch/arm/mach-zynq/u-boot.lds | 12 +++--------- include/asm-generic/sections.h | 1 + 4 files changed, 7 insertions(+), 20 deletions(-) -- 2.37.2 diff --git a/arch/arm/cpu/u-boot.lds b/arch/arm/cpu/u-boot.lds index 7c6e7891d360..df55bb716e35 100644 --- a/arch/arm/cpu/u-boot.lds +++ b/arch/arm/cpu/u-boot.lds @@ -43,18 +43,12 @@ SECTIONS } /* This needs to come before *(.text*) */ - .__efi_runtime_start : { - *(.__efi_runtime_start) - } - - .efi_runtime : { + .efi_runtime ALIGN(4) : { + __efi_runtime_start = .; *(.text.efi_runtime*) *(.rodata.efi_runtime*) *(.data.efi_runtime*) - } - - .__efi_runtime_stop : { - *(.__efi_runtime_stop) + __efi_runtime_stop = .; } .text_rest : diff --git a/arch/arm/lib/sections.c b/arch/arm/lib/sections.c index 1ee3dd3667ba..a4d4202e99f5 100644 --- a/arch/arm/lib/sections.c +++ b/arch/arm/lib/sections.c @@ -25,6 +25,4 @@ char __secure_start[0] __section(".__secure_start"); char __secure_end[0] __section(".__secure_end"); char __secure_stack_start[0] __section(".__secure_stack_start"); char __secure_stack_end[0] __section(".__secure_stack_end"); -char __efi_runtime_start[0] __section(".__efi_runtime_start"); -char __efi_runtime_stop[0] __section(".__efi_runtime_stop"); char _end[0] __section(".__end"); diff --git a/arch/arm/mach-zynq/u-boot.lds b/arch/arm/mach-zynq/u-boot.lds index 71dea4a1f60a..fcd0f42a7106 100644 --- a/arch/arm/mach-zynq/u-boot.lds +++ b/arch/arm/mach-zynq/u-boot.lds @@ -22,18 +22,12 @@ SECTIONS } /* This needs to come before *(.text*) */ - .__efi_runtime_start : { - *(.__efi_runtime_start) - } - - .efi_runtime : { + .efi_runtime ALIGN(4) : { + __efi_runtime_start = .; *(.text.efi_runtime*) *(.rodata.efi_runtime*) *(.data.efi_runtime*) - } - - .__efi_runtime_stop : { - *(.__efi_runtime_stop) + __efi_runtime_stop = .; } .text_rest : diff --git a/include/asm-generic/sections.h b/include/asm-generic/sections.h index 60949200dd93..b6bca53db10d 100644 --- a/include/asm-generic/sections.h +++ b/include/asm-generic/sections.h @@ -35,6 +35,7 @@ extern char __priv_data_start[], __priv_data_end[]; extern char __ctors_start[], __ctors_end[]; extern char __efi_runtime_rel_start[], __efi_runtime_rel_stop[]; +extern char __efi_runtime_start[], __efi_runtime_stop[]; /* function descriptor handling (if any). Override * in asm/sections.h */ From patchwork Wed Feb 28 10:48:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 776458 Delivered-To: patch@linaro.org Received: by 2002:adf:e94d:0:b0:33d:f458:43ce with SMTP id m13csp227214wrn; Wed, 28 Feb 2024 02:50:18 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVALDzegK0bx/4PLi34fi2TVwdycRqp3dwY1zy00C5pXECVjGCSPFhd6WetVJn7Y94fJeyP5Ks+a4n3kDwemppd X-Google-Smtp-Source: AGHT+IGyt9iUA8amL/JakPucOdDuJgXUnUT179m3iK4sBeuLZD7OgqTjakHXwO9eC7JIajCdqWRZ X-Received: by 2002:a5d:6d85:0:b0:33d:da6e:b7db with SMTP id l5-20020a5d6d85000000b0033dda6eb7dbmr6575609wrs.62.1709117417861; Wed, 28 Feb 2024 02:50:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709117417; cv=none; d=google.com; s=arc-20160816; b=CdXiMU8u/+2e9rDLGM51ZyYJCKLCvCinYZgvWkuIZmKy+5EIXHNHu8jgd7RKU0PiIo oBU47AUjrbveNwjZCHgAuLHSzyq215NgNtEmx65VA3xs1nkKokgcs5MZeKn0GYc1d0nm B0THsldz60/yY6XlH4ADuAs6xi2MGUsPC+gc4dIIgkL8PxeVFOmjmOUNY2zBp+B9Ngz/ ngh93aWBdFiUp/0661oYBbrqRQQY4KKmCGgDyGjhBTdW5HqcUCr7RuaXUCYOM7DsOWC+ IxQp1syTKzYxrXklPVyOrAKfRXKawOGioRgh/amHm2kHVfOJHSi7EbTX167mytaM98Xs zp3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YUnSc/D4gSPARvE0QDoHE4cFvXwZ0/qZG6/9oqeUf7U=; fh=Qc7Bwm8F6A6m2T1dNMTqiCGSn6FsxQ9ndhZ8EDBeZTo=; b=npuzzEFJc6BpdStgvSMD1DDHvVJEMn6BXUbr/kMC+34qLvhaDmtl3csrh4oruEd3Fc 5amfivUAilz3B5yG0GhC/PenAWMIMXnm91BpW+BaeTa+XgLS+s4pt480Nsly7fBf2pLz UBZiPCIqTR/ndakhkb9WbGMOBnq5gTVCdkvnrxNtry1cSrOhEmyJpB29fAmkZctxdtgd wz/q7H0LGfOMxCjqN+3n+7VSREboKqb2tijPopCSXXhqjJPte0YbzdhF9QkrRmFSNUHo BVBsDvq+0W96VhUgXgWd/YiIEEVxuLOYVybRsoFVErG5s3zPbzvpofBKZ4ioHBDYSL6G dC3A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Z1/ReKJ+"; 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 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 d12-20020a056000186c00b0033dc048fe1fsi5153539wri.500.2024.02.28.02.50.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:50:17 -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="Z1/ReKJ+"; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2473687ECC; Wed, 28 Feb 2024 11:49:00 +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="Z1/ReKJ+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D3DE087D6B; Wed, 28 Feb 2024 11:48:58 +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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 CE06688082 for ; Wed, 28 Feb 2024 11:48:54 +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=ilias.apalodimas@linaro.org Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-412a3371133so24253185e9.2 for ; Wed, 28 Feb 2024 02:48:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709117334; x=1709722134; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YUnSc/D4gSPARvE0QDoHE4cFvXwZ0/qZG6/9oqeUf7U=; b=Z1/ReKJ+LI8j/HkudaToxMn7WY5F4yR2ZJhb8Do0rhSlzNH3wIM0ES26++uTaoZFna cfB1Nr0nrZKkYLpa7DPVhp2yHTHbRUihafzi0jh7UK+Amq9nk/qLEc5tQr00JPcXtxpx jcF/5C4KUqFYwwGh5PCaichba2Rq/vHD1e46u/nd2tgEZXQ1ADVAW/wDcktF1no1xAze vmmG/RB7Q87X7oSM4vmPXy/2UN/AnKLgKMN0+mErADsLjh/bPTV5zu2Im09z9Dowd1KY y6E2Md1MkOxUfu9O4TRh9nbt8hVSxwETETzuL9L/uujxQRCLWvHz0R6DIj/3ybJLmiFr Nzqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709117334; x=1709722134; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YUnSc/D4gSPARvE0QDoHE4cFvXwZ0/qZG6/9oqeUf7U=; b=f6GxQnk/oMBS88Z49agAtegLGspD8YW+GdVxOnxJPJnL35CdqYeAK9CPGMS+5249FB 42Zds7bKhrSptcTZjWTnhqOtIIc3AAXYzSuT5T8GBVL2eH92qd3ax0nxWa9GYbm+M3yK aZ8t/cGvQlFEh3Evxp9H3lMxrHAb6RQDi1+MGVLnqO3O78HEyDRU18FbXTaxZ86YV9g3 Ydve0pVtVjW/TWn86CcD+gPGPjAPWme7SUVIjpAdu22pMVckkfMPlvGjmzAYe8T5e1PH BjUaEeSFqlTkdLwPrzvDtCSYy2AhHsSH/HsJK46oab4qMF88vr0p75w/EOaM/ACxCZO9 sqxA== X-Gm-Message-State: AOJu0YziLBsNJiqIs/hZtzKGUkGq0p3StgLs6Z8jvJbMSzC+n4+DvCUl 34JHw+jUr6cuSfrtOPyvjOUUIwTcaCzfzMLb+WPGjoZ/FwELnYt4UYdFC8IKna56uPDl3tJ+3BQ KDac= X-Received: by 2002:a05:600c:138f:b0:411:a5f9:26f5 with SMTP id u15-20020a05600c138f00b00411a5f926f5mr10541180wmf.38.1709117334311; Wed, 28 Feb 2024 02:48:54 -0800 (PST) Received: from hades.. ([78.87.146.252]) by smtp.gmail.com with ESMTPSA id x1-20020a05600c2a4100b00410dd253008sm1680314wme.42.2024.02.28.02.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:48:54 -0800 (PST) From: Ilias Apalodimas To: u-boot@lists.denx.de, trini@konsulko.com, cfsworks@gmail.com Cc: caleb.connolly@linaro.org, sumit.garg@linaro.org, Ilias Apalodimas , Simon Glass , Philipp Tomsich , Kever Yang , Michal Simek , Jorge Ramirez-Ortiz , Yegor Yefremov , Heinrich Schuchardt , Shiji Yang , Bin Meng Subject: [RFC PATCH 6/6] arm: move image_copy_start/end to linker symbols Date: Wed, 28 Feb 2024 12:48:09 +0200 Message-Id: <20240228104811.1366694-7-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20240228104811.1366694-1-ilias.apalodimas@linaro.org> References: <20240228104811.1366694-1-ilias.apalodimas@linaro.org> 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 image_copy_start/end are defined as c variables in order to force the compiler emit relative references. However, defining those within a section definition will do the same thing. So let's remove the special sections from the linker scripts, the variable definitions from sections.c and define them as a symbols within a section. Signed-off-by: Ilias Apalodimas --- arch/arm/cpu/armv8/u-boot.lds | 10 ++-------- arch/arm/cpu/u-boot.lds | 10 ++-------- arch/arm/lib/sections.c | 2 -- arch/arm/mach-rockchip/u-boot-tpl-v8.lds | 8 ++------ arch/arm/mach-zynq/u-boot.lds | 9 ++------- board/qualcomm/dragonboard820c/u-boot.lds | 11 ++--------- 6 files changed, 10 insertions(+), 40 deletions(-) -- 2.37.2 diff --git a/arch/arm/cpu/armv8/u-boot.lds b/arch/arm/cpu/armv8/u-boot.lds index e737de761a9d..340acf5c043b 100644 --- a/arch/arm/cpu/armv8/u-boot.lds +++ b/arch/arm/cpu/armv8/u-boot.lds @@ -23,7 +23,7 @@ SECTIONS . = ALIGN(8); .text : { - *(.__image_copy_start) + __image_copy_start = .; CPUDIR/start.o (.text*) } @@ -120,13 +120,7 @@ SECTIONS *(.rel*.efi_runtime) *(.rel*.efi_runtime.*) __efi_runtime_rel_stop = .; - } - - . = ALIGN(8); - - .image_copy_end : - { - *(.__image_copy_end) + __image_copy_end = .; } .rela.dyn ALIGN(8) : { diff --git a/arch/arm/cpu/u-boot.lds b/arch/arm/cpu/u-boot.lds index df55bb716e35..7c4f9c2d4dd3 100644 --- a/arch/arm/cpu/u-boot.lds +++ b/arch/arm/cpu/u-boot.lds @@ -37,7 +37,7 @@ SECTIONS . = ALIGN(4); .text : { - *(.__image_copy_start) + __image_copy_start = .; *(.vectors) CPUDIR/start.o (.text*) } @@ -151,13 +151,7 @@ SECTIONS *(.rel*.efi_runtime) *(.rel*.efi_runtime.*) __efi_runtime_rel_stop = .; - } - - . = ALIGN(4); - - .image_copy_end : - { - *(.__image_copy_end) + __image_copy_end = .; } .rel.dyn ALIGN(4) : { diff --git a/arch/arm/lib/sections.c b/arch/arm/lib/sections.c index a4d4202e99f5..db5463b2bbbc 100644 --- a/arch/arm/lib/sections.c +++ b/arch/arm/lib/sections.c @@ -19,8 +19,6 @@ * aliasing warnings. */ -char __image_copy_start[0] __section(".__image_copy_start"); -char __image_copy_end[0] __section(".__image_copy_end"); char __secure_start[0] __section(".__secure_start"); char __secure_end[0] __section(".__secure_end"); char __secure_stack_start[0] __section(".__secure_stack_start"); diff --git a/arch/arm/mach-rockchip/u-boot-tpl-v8.lds b/arch/arm/mach-rockchip/u-boot-tpl-v8.lds index b7887194026e..4b480ebb0c4d 100644 --- a/arch/arm/mach-rockchip/u-boot-tpl-v8.lds +++ b/arch/arm/mach-rockchip/u-boot-tpl-v8.lds @@ -24,7 +24,7 @@ SECTIONS .text : { . = ALIGN(8); - *(.__image_copy_start) + __image_copy_start = .; CPUDIR/start.o (.text*) *(.text*) } @@ -42,11 +42,7 @@ SECTIONS __u_boot_list : { . = ALIGN(8); KEEP(*(SORT(__u_boot_list*))); - } - - .image_copy_end : { - . = ALIGN(8); - *(.__image_copy_end) + __image_copy_end = .; } .end : { diff --git a/arch/arm/mach-zynq/u-boot.lds b/arch/arm/mach-zynq/u-boot.lds index fcd0f42a7106..553bcf182272 100644 --- a/arch/arm/mach-zynq/u-boot.lds +++ b/arch/arm/mach-zynq/u-boot.lds @@ -16,7 +16,7 @@ SECTIONS . = ALIGN(4); .text : { - *(.__image_copy_start) + __image_copy_start = .; *(.vectors) CPUDIR/start.o (.text*) } @@ -57,12 +57,7 @@ SECTIONS *(.rel*.efi_runtime) *(.rel*.efi_runtime.*) __efi_runtime_rel_stop = .; - } - - . = ALIGN(8); - .image_copy_end : - { - *(.__image_copy_end) + __image_copy_end = .; } .rel.dyn ALIGN(8) : { diff --git a/board/qualcomm/dragonboard820c/u-boot.lds b/board/qualcomm/dragonboard820c/u-boot.lds index 2969f139bfd2..f8d3c030ef32 100644 --- a/board/qualcomm/dragonboard820c/u-boot.lds +++ b/board/qualcomm/dragonboard820c/u-boot.lds @@ -17,7 +17,7 @@ SECTIONS . = ALIGN(8); .text : { - *(.__image_copy_start) + __image_copy_start = .; board/qualcomm/dragonboard820c/head.o (.text*) CPUDIR/start.o (.text*) } @@ -60,16 +60,9 @@ SECTIONS *(.rel*.efi_runtime) *(.rel*.efi_runtime.*) __efi_runtime_rel_stop = .; + __image_copy_end = .; } - . = ALIGN(8); - - .image_copy_end : - { - *(.__image_copy_end) - } - - .rela.dyn ALIGN(8) : { __rel_dyn_start = .; *(.rela*)