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 X-Spam-Level: X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3BD0C433EF for ; Wed, 8 Sep 2021 13:34:45 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 330036120F for ; Wed, 8 Sep 2021 13:34:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 330036120F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D6DEF833B1; Wed, 8 Sep 2021 15:34:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="KmMT68Z+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 60A5C833A5; Wed, 8 Sep 2021 15:34:34 +0200 (CEST) Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 3134483368 for ; Wed, 8 Sep 2021 15:34:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-wm1-x336.google.com with SMTP id c8-20020a7bc008000000b002e6e462e95fso1647206wmb.2 for ; Wed, 08 Sep 2021 06:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FQc+SLWERus1AAcIAA+Sr1ODY9IydPYExgemFV+XLas=; b=KmMT68Z++Zr0wdpuXEaquICSN8V8OsRxLAWbXLVfkb8RAYcAi+F54uUQ1PjL7fxpTW RnSmZPt7BrvpfMfCoTJWiiwJXTi4nJIOHhcx8veq+pHAbha4b5t/3iZlrpfiOPNbK72u GoBQJKr7rsXUC52z0HveJCxLj13qc6Zkw4pS8= 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=FQc+SLWERus1AAcIAA+Sr1ODY9IydPYExgemFV+XLas=; b=JYHV/holjFHmThLy8MLuCMhVVlQH4uY2iSR7tFDQRixf30Or7pQq0Nhdd+XYY2ON32 cqbqkFRE5d/sLlyhl3W7FyZV9FJR0Utzd1KhfE6ikzrLmAsIlN9T28PEeBtacYBE02SU OIplzRzYvJkgIii/P7pO/H+Yt6Cd/KtqDYpO5X+aVa6z4Mi8Cm6fJOTZe+ZW96vKLKaK T6I8Ukz1LYTx19DHNVlPWdIAw7oKzOncJsf0Nq0eZRTUQlE+1ezASgF2R9PXuTfIXtIw f3uNkWAtAOm6eF8yh1CA8d1Qk0r8b26y7MwJHVk8Q0r0EkQooacCdq1GB7q1E5ZbJHYG zEDA== X-Gm-Message-State: AOAM532IU0yUhPjRsTZPuaH9nB32GoFDsKliZNnL6L6F427uWN0U2UW/ h57KC8kud6ubORabtk67QbZhLckZ1Nd6ZQCZ X-Google-Smtp-Source: ABdhPJwTQMrhpCFtXHfWkWiIVDrlHwbfJ5+9CQr/qpMIZHkvwUSgJ4WmjlfPWfW/+L8QUIHnRJ5dAA== X-Received: by 2002:a1c:2246:: with SMTP id i67mr3764658wmi.179.1631108063446; Wed, 08 Sep 2021 06:34:23 -0700 (PDT) Received: from sjg1.roam.corp.google.com (82-69-54-180.dsl.in-addr.zen.co.uk. [82.69.54.180]) by smtp.gmail.com with ESMTPSA id l2sm2209065wmi.1.2021.09.08.06.34.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 06:34:22 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Heinrich Schuchardt , Bin Meng , Tom Rini , Christian Melki , Simon Glass Subject: [PATCH 01/35] x86: Keep symbol information in u-boot ELF file Date: Wed, 8 Sep 2021 07:33:31 -0600 Message-Id: <20210908133405.696481-2-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.153.gba50c8fa24-goog In-Reply-To: <20210908133405.696481-1-sjg@chromium.org> References: <20210908133405.696481-1-sjg@chromium.org> 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 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.2 at phobos.denx.de X-Virus-Status: Clean At present this information is stripped when linking. It is useful to keep it around. Strip it from the .efi files instead. Signed-off-by: Simon Glass --- arch/x86/config.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/config.mk b/arch/x86/config.mk index 7a8242562db..589f2aed2bc 100644 --- a/arch/x86/config.mk +++ b/arch/x86/config.mk @@ -37,7 +37,7 @@ KBUILD_LDFLAGS += -m $(if $(IS_32BIT),elf_i386,elf_x86_64) LDFLAGS_EFI_PAYLOAD := -Bsymbolic -Bsymbolic-functions -shared --no-undefined -s OBJCOPYFLAGS_EFI := -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ - -j .rel -j .rela -j .reloc + -j .rel -j .rela -j .reloc --strip-all # Compiler flags to be added when building UEFI applications CFLAGS_EFI := -fpic -fshort-wchar @@ -65,7 +65,7 @@ CPPFLAGS_crt0-efi-$(EFIARCH).o += $(CFLAGS_EFI) ifeq ($(CONFIG_EFI_APP),y) PLATFORM_CPPFLAGS += $(CFLAGS_EFI) -LDFLAGS_FINAL += -znocombreloc -shared -s +LDFLAGS_FINAL += -znocombreloc -shared LDSCRIPT := $(LDSCRIPT_EFI) else -- 2.33.0.153.gba50c8fa24-goog