From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 4B174C433EF for ; Thu, 7 Apr 2022 09:42:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 19BBA83C8C; Thu, 7 Apr 2022 11:41:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.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=google.com header.i=@google.com header.b="j8Bh6qnO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AFF6C83C39; Thu, 7 Apr 2022 11:41:38 +0200 (CEST) Received: from mail-wm1-x349.google.com (mail-wm1-x349.google.com [IPv6:2a00:1450:4864:20::349]) (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 1D9CF83C06 for ; Thu, 7 Apr 2022 11:41:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=3zbFOYgYKBoQi0k2ttowwotm.kwu2-jww1tq010.lmv5.lm@flex--ascull.bounces.google.com Received: by mail-wm1-x349.google.com with SMTP id m35-20020a05600c3b2300b0038c90ef2dceso4333741wms.4 for ; Thu, 07 Apr 2022 02:41:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=fd6l8erWUZxOGsRRnCiMXy4d0EerEKnyvXi4TB0rL7o=; b=j8Bh6qnOlFFYnIXpCRGw2whpQ44wdR2ajeeolwv7ACGcOUhzlDR4KATKfMdusEmFMY FwoFK1zB7Zy3mJBxf5LnnIAqXVKSSTwgmuN6fEEUdg4bmcOGz9Xw/koJTEq3LvoQN0uI ApA8v3NA+Pe4TEo+Ml4hqXUmwRX6taGzYJj2j9tNVtbyb36KdqfmR0FCjUEpssCqkDCC 1brp7Z4AhGuzVuLK2dA4WEMVDyAwOqxUedh5f2cOVjPn+UJKWZJ0O+e+LsFL5vrBYwqh nVsnzBXlS2E4GrlgJ5MnaXKTBoO6cWDTHFTqLucSutOpJu7XdqXTVafjAXJC0e+Enj8X yXPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=fd6l8erWUZxOGsRRnCiMXy4d0EerEKnyvXi4TB0rL7o=; b=fTvdNtKjfJIgiMsDruKHN8L8+/6iAAZ6WvnglktIgeOBcw7r7eJegOSQJWaerRfdCf 8MamyIJTon6Oglavqtxo4NBl4rgKurI1XVUwBh4JhTl0cFHnPP2dPfbjcLiMxZt3Whv0 52PTtFdxKnlF3IuhOkgpBwBRkKBemVDqNwo+3jX/Etclk/rccCx3VpsYrQdJONmjxFq9 zPbYNIiRNjbRxmWbP0nFC87wzbBFgjqBlsQBalzyzKVoIKrGy/jYvn5kt9aA1p1Debu9 Xl3OroCtG++R+/t7eOqH4FbVXiMIEtjLCHQX7delvKinHWL/McSRsiUz1u5mrUjZJDqz x5ZQ== X-Gm-Message-State: AOAM5338ORmLz0PMQaqX4WnwBBhCLf5ctQjNOLwzvZlWTMo5a+EEFeWc Q4YwJ+rJpuwhnrHoZq+uaHM3XJOraZqUVA6uaqWtxfI+PMp4fP+zaa2JB0kx5TD8X7tNFM6mfGq zagsrzXDImFOZTNJ93tzJEBDMHx0e5tViWjBbiSNNajL757pPcKIy0CuFCtU= X-Google-Smtp-Source: ABdhPJy3U5LcKTSGfgYxZ1Mn8EoJ1sfqIeznf3XLyA1ieOOpjUJxeSeMo3Cr3S1hyCwOKIUtMwG+boo6IJA= X-Received: from ascull.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:1510]) (user=ascull job=sendgmr) by 2002:a7b:c5d5:0:b0:37b:fda9:a5e2 with SMTP id n21-20020a7bc5d5000000b0037bfda9a5e2mr11213098wmk.62.1649324493744; Thu, 07 Apr 2022 02:41:33 -0700 (PDT) Date: Thu, 7 Apr 2022 09:41:13 +0000 In-Reply-To: <20220407094123.1752236-1-ascull@google.com> Message-Id: <20220407094123.1752236-2-ascull@google.com> Mime-Version: 1.0 References: <20220407094123.1752236-1-ascull@google.com> X-Mailer: git-send-email 2.35.1.1094.g7c7d902a7c-goog Subject: [PATCH 01/11] sandbox: Set the EFI symbols in linker script From: Andrew Scull To: u-boot@lists.denx.de Cc: sjg@chromium.org, seanga2@gmail.com, Andrew Scull Content-Type: text/plain; charset="UTF-8" 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.5 at phobos.denx.de X-Virus-Status: Clean The sandbox doesn't populate the EFI lists so explicitly set the list start and end symbols to indicate that the lists are empty. This simplifies the linker scripts, removed references to non-existant sections and removes '.' prefixed sections that conflicted with clang's ASAN. Signed-off-by: Andrew Scull --- arch/sandbox/cpu/u-boot.lds | 32 +++++--------------------------- arch/sandbox/lib/Makefile | 2 +- arch/sandbox/lib/sections.c | 13 ------------- 3 files changed, 6 insertions(+), 41 deletions(-) delete mode 100644 arch/sandbox/lib/sections.c diff --git a/arch/sandbox/cpu/u-boot.lds b/arch/sandbox/cpu/u-boot.lds index 6d710618f5..dd675cc3d2 100644 --- a/arch/sandbox/cpu/u-boot.lds +++ b/arch/sandbox/cpu/u-boot.lds @@ -19,33 +19,11 @@ SECTIONS *(.u_boot_sandbox_getopt_end) } - .__efi_runtime_start : { - *(.__efi_runtime_start) - } - - .efi_runtime : { - *(efi_runtime_text) - *(efi_runtime_data) - } - - .__efi_runtime_stop : { - *(.__efi_runtime_stop) - } - - .efi_runtime_rel_start : - { - *(.__efi_runtime_rel_start) - } - - .efi_runtime_rel : { - *(.relefi_runtime_text) - *(.relefi_runtime_data) - } - - .efi_runtime_rel_stop : - { - *(.__efi_runtime_rel_stop) - } + /* Sandbox has empty EFI runtime lists. */ + __efi_runtime_start = .; + __efi_runtime_stop = __efi_runtime_start; + __efi_runtime_rel_start = .; + __efi_runtime_rel_stop = __efi_runtime_rel_start; .dynsym : { diff --git a/arch/sandbox/lib/Makefile b/arch/sandbox/lib/Makefile index a2bc5a7ee6..05f06180f8 100644 --- a/arch/sandbox/lib/Makefile +++ b/arch/sandbox/lib/Makefile @@ -5,7 +5,7 @@ # (C) Copyright 2002-2006 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. -obj-y += fdt_fixup.o interrupts.o sections.o +obj-y += fdt_fixup.o interrupts.o obj-$(CONFIG_PCI) += pci_io.o obj-$(CONFIG_CMD_BOOTM) += bootm.o obj-$(CONFIG_CMD_BOOTZ) += bootm.o diff --git a/arch/sandbox/lib/sections.c b/arch/sandbox/lib/sections.c deleted file mode 100644 index 2559eeea38..0000000000 --- a/arch/sandbox/lib/sections.c +++ /dev/null @@ -1,13 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Copyright 2013 Albert ARIBAUD - * - */ -#include - -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"); -- 2.35.1.1094.g7c7d902a7c-goog