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 E03D9C433F5 for ; Wed, 30 Mar 2022 09:19:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9BC1483AEE; Wed, 30 Mar 2022 11:19:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.intel.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=intel.com header.i=@intel.com header.b="Faf7qhx/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F39A883C11; Wed, 30 Mar 2022 11:19:52 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B5BBA83A79 for ; Wed, 30 Mar 2022 11:19:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.intel.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=andriy.shevchenko@linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648631990; x=1680167990; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=S10cR4gZG+HrOEcuwNn+KYHBCmiTp5taXHy5diSzqC4=; b=Faf7qhx/0ZctgZglu3khagjA+Q4IsQ5qzuF2w9qjHgOZ8Aor3ul0z8R/ zxmff1B/Ax9F4IfCJ/f9Lv3VFni47C8cJJIu6MLMrYY2/fc8PC1TY4jfJ DmtBR8Q5KBZFeWTn+TrWPk96eR4ld6HxFcOqIKrxiz5D9nFigFr3ZlVw+ ZXzBSShOJA3LC03dxha6F2V0OqH5jjm6masNCZLMkN99RBGIMCGErINx1 hEqxsMH7TgvUKYYf63N2ychHXU0jYTqMg8YLgHX8/wYEaVazXGTXcgDVN UapWQ4PmxpO889Sl7sgSCvteGzCkfrnqCcnfA5wWls/CORCt7KjlIM+E+ Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10301"; a="345932550" X-IronPort-AV: E=Sophos;i="5.90,222,1643702400"; d="scan'208";a="345932550" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2022 02:19:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,222,1643702400"; d="scan'208";a="653747392" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga004.jf.intel.com with ESMTP; 30 Mar 2022 02:19:46 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 6BB1911F; Wed, 30 Mar 2022 12:20:07 +0300 (EEST) From: Andy Shevchenko To: Simon Glass , u-boot@lists.denx.de Cc: Heinrich Schuchardt , Tom Rini , Andy Shevchenko Subject: [PATCH v1 1/1] efi_loader: initrddump: Actually use the custom CFLAGS Date: Wed, 30 Mar 2022 12:14:43 +0300 Message-Id: <20220330091443.34177-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 It seems a copy'n'paste typo when tool had been introduced. It has never had the 'exit' suffix in the file name. Hence, the custom CFLAGS never been applied and, for example, BFD linker complains: LD lib/efi_loader/initrddump_efi.so ld.bfd: lib/efi_loader/initrddump.o: warning: relocation in read-only section `.text.efi_main' ld.bfd: warning: creating DT_TEXTREL in a shared object Remove wrong 'exit' suffix from the custom CFLAGS variable. Fixes: 65ab48d69ddb ("efi_selftest: provide initrddump test tool") Signed-off-by: Andy Shevchenko --- lib/efi_loader/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/Makefile b/lib/efi_loader/Makefile index befed7144e78..034d26cf0109 100644 --- a/lib/efi_loader/Makefile +++ b/lib/efi_loader/Makefile @@ -16,7 +16,7 @@ CFLAGS_helloworld.o := $(CFLAGS_EFI) -Os -ffreestanding CFLAGS_REMOVE_helloworld.o := $(CFLAGS_NON_EFI) CFLAGS_dtbdump.o := $(CFLAGS_EFI) -Os -ffreestanding CFLAGS_REMOVE_dtbdump.o := $(CFLAGS_NON_EFI) -CFLAGS_initrddump_exit.o := $(CFLAGS_EFI) -Os -ffreestanding +CFLAGS_initrddump.o := $(CFLAGS_EFI) -Os -ffreestanding CFLAGS_REMOVE_initrddump.o := $(CFLAGS_NON_EFI) ifneq ($(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),) -- 2.35.1