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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C45E2C433EF for ; Sat, 25 Sep 2021 00:32:00 +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 31A9761212 for ; Sat, 25 Sep 2021 00:32:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 31A9761212 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 126A48352E; Sat, 25 Sep 2021 02:31:52 +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="DfF5RAh6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 319F5834D8; Sat, 25 Sep 2021 02:31:21 +0200 (CEST) Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0: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 D3CB3834D8 for ; Sat, 25 Sep 2021 02:31:04 +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-ot1-x336.google.com with SMTP id l16-20020a9d6a90000000b0053b71f7dc83so15446801otq.7 for ; Fri, 24 Sep 2021 17:31:04 -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=jKL2JeeZhltJYuAJzyC8XlColGb3Ri7GuIj9f6j8bfI=; b=DfF5RAh6hoZ2dpSvlIEcdpiUjTfZ2PKP47nUcOGOWniBtu5CGAyyQTyv0CJIXlGkLA acsAU2IzKNfRyamQS0D7kMpiMLNo0m/JLLeIPBsjmGSMkmyEl6UsbGq7/5DNABc+UVL3 ddRt3uIGBtr6PEZ+D2epSfuqn4jont7kwXnTA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jKL2JeeZhltJYuAJzyC8XlColGb3Ri7GuIj9f6j8bfI=; b=4vg1CvjYareiYyqTMTGX1p0lzw91xLdexya4rlRCWpj/d0xY2ukABKc0RutQXLBpkr aqOqbQC6iF1YKYdFZJyj3jsaURXwxMGylX+REXbVkHY/EflDJOHYyjiujFxxIRc/gZeU BGlo9Fy9tloNTP/cBeoxzfagAf3RKDCDujdj8DQdRFccgdiIwfM7ibdq0teILQE3xpPF ChDSIZOHCIxsvNLkppVnvvWaYPSMlWv4O7cXlzIjcSQ30YzrR7+lV9DLBhudyR5zcnzh Lw2eLYfb0u3Nbp1/B4jxHms5nLme/UuVbH8aLZnuNZR9keFxbOKO/VnixWvcWt4apnc0 1WJw== X-Gm-Message-State: AOAM530I5ILDyk1xcACOLbjGsiIFFPQO7WtQqHLRLcozjH0LvCJpe2Pi ovnlFfuEvI1BOB6V67I2wTcGOG1WrSKtwQ== X-Google-Smtp-Source: ABdhPJxrVbQ2oljM2KLAPHvgKvTE2k/XPGvLJ6nsUra74ZPhnpxRgAjJYyAGEdB9siToO3rZivgM+g== X-Received: by 2002:a05:6830:2685:: with SMTP id l5mr6656447otu.9.1632529863329; Fri, 24 Sep 2021 17:31:03 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id y83sm2491462oia.47.2021.09.24.17.31.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 17:31:03 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Bin Meng , Christian Melki , Tom Rini , Ilias Apalodimas , Simon Glass Subject: [PATCH v2 03/39] x86: Keep symbol information in u-boot ELF file Date: Fri, 24 Sep 2021 18:30:19 -0600 Message-Id: <20210925003055.759305-3-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog In-Reply-To: <20210925003055.759305-1-sjg@chromium.org> References: <20210925003055.759305-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 --- (no changes since v1) 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.685.g46640cef36-goog