From patchwork Thu Jul 9 13:47:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 50960 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9DD47228E5 for ; Thu, 9 Jul 2015 13:48:27 +0000 (UTC) Received: by wifm2 with SMTP id m2sf38999383wif.1 for ; Thu, 09 Jul 2015 06:48:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=v0ui3ABO6gfunoF1MhVkV/sWO73earamTnneG4tiNY0=; b=d7+u4ynV2Eropc4k1zSgmPu9QXkQd/g3k9Y9X1KRiGWVzL5mP3xhSK/TUm9Sl4Jf61 gNeOLlW9bLPejhot6+BLllWTsNGkLDez3XBnLhJNyEYDEyMdX6rEaGCzt6S1LqyWDmWh i7l0lVZexiv5HV7/hbsLx+t7OcSHQhExXQ42vDLctduojNLGdl7v6CDXJWW8y++N5MHY eiIidKJqTl5fxz0TEapEZOYxNADIrmq5gaiiL2tRs85gdNRKRIvL5GVrTCbvTs31SVLy e0BqPW30O9r9rBb5xW+DSAKzOFoMoZ4p345OOuCvlsYXJZ1R/bU3tq9F26WsWwuNntYm LjVg== X-Gm-Message-State: ALoCoQmp6bnPLUbHsXPIpr/9VScMSFhchFVPLgmRMlB+R0ObAFLD1+2HDQGjW0dAy1nDiojNLg9Y X-Received: by 10.112.253.135 with SMTP id aa7mr8050801lbd.11.1436449706971; Thu, 09 Jul 2015 06:48:26 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.129 with SMTP id s1ls1188787las.89.gmail; Thu, 09 Jul 2015 06:48:26 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr14629102lbc.41.1436449706820; Thu, 09 Jul 2015 06:48:26 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id r11si4876411lby.31.2015.07.09.06.48.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 06:48:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lblf12 with SMTP id f12so5947466lbl.2 for ; Thu, 09 Jul 2015 06:48:26 -0700 (PDT) X-Received: by 10.112.220.7 with SMTP id ps7mr14840746lbc.72.1436449706684; Thu, 09 Jul 2015 06:48:26 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp681257lbb; Thu, 9 Jul 2015 06:48:25 -0700 (PDT) X-Received: by 10.107.9.41 with SMTP id j41mr27667557ioi.37.1436449705204; Thu, 09 Jul 2015 06:48:25 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id m8si5704759igv.46.2015.07.09.06.48.24 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 09 Jul 2015 06:48:25 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ZDCBS-0008VK-1n; Thu, 09 Jul 2015 13:48:14 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ZDCBR-0008V9-6a for edk2-devel@lists.sourceforge.net; Thu, 09 Jul 2015 13:48:13 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of linaro.org designates 74.125.82.53 as permitted sender) client-ip=74.125.82.53; envelope-from=leif.lindholm@linaro.org; helo=mail-wg0-f53.google.com; Received: from mail-wg0-f53.google.com ([74.125.82.53]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1ZDCBQ-0004nv-8m for edk2-devel@lists.sourceforge.net; Thu, 09 Jul 2015 13:48:13 +0000 Received: by wgov12 with SMTP id v12so39502705wgo.1 for ; Thu, 09 Jul 2015 06:48:06 -0700 (PDT) X-Received: by 10.180.90.42 with SMTP id bt10mr104671791wib.64.1436449686252; Thu, 09 Jul 2015 06:48:06 -0700 (PDT) Received: from mohikan.mushroom.smurfnet.nu (cpc4-cmbg17-2-0-cust71.5-4.cable.virginm.net. [86.14.224.72]) by smtp.gmail.com with ESMTPSA id lu5sm8967536wjb.9.2015.07.09.06.48.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 06:48:05 -0700 (PDT) From: Leif Lindholm To: edk2-devel@lists.sourceforge.net Date: Thu, 9 Jul 2015 14:47:58 +0100 Message-Id: <1436449678-19930-1-git-send-email-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1423230742-26589-1-git-send-email-leif.lindholm@linaro.org> References: <1423230742-26589-1-git-send-email-leif.lindholm@linaro.org> X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1ZDCBQ-0004nv-8m Cc: linaro-uefi@lists.linaro.org Subject: [edk2] [PATCH] BaseTools: aarch64: add -fno-asynchronous-unwind-tables to gcc cflags X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leif.lindholm@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Some toolchains, at least Fedora GCC, generate inline unwind tables in object files. These confuses GenFw to no end, leading to build failures: GenFw: ERROR 3000: Invalid WriteSections64(): ... unsupported ELF EM_AARCH64 relocation 0x105. GenFw: ERROR 3000: Invalid WriteSections64(): ... unsupported ELF EM_AARCH64 relocation 0x0. I am aware of no current use of these tables, so explicitly disable their generation for aarch64. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm --- BaseTools/Conf/tools_def.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index 7edd759..8e5750e 100644 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -3818,7 +3818,7 @@ DEFINE GCC_IA32_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -m32 -malign-double - DEFINE GCC_X64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mno-red-zone -Wno-address -mno-stack-arg-probe DEFINE GCC_IPF_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -minline-int-divide-min-latency DEFINE GCC_ARM_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mword-relocations -mlittle-endian -mabi=aapcs -mapcs -fno-short-enums -save-temps -fsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -Wno-address -mthumb -mfloat-abi=soft -DEFINE GCC_AARCH64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mcmodel=large -mlittle-endian -fno-short-enums -save-temps -fverbose-asm -fsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-builtin -Wno-address +DEFINE GCC_AARCH64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mcmodel=large -mlittle-endian -fno-short-enums -save-temps -fverbose-asm -fsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-builtin -Wno-address -fno-asynchronous-unwind-tables DEFINE GCC_DLINK_FLAGS_COMMON = -nostdlib --pie DEFINE GCC_IA32_X64_DLINK_COMMON = DEF(GCC_DLINK_FLAGS_COMMON) --gc-sections DEFINE GCC_ARM_AARCH64_DLINK_COMMON= --emit-relocs -nostdlib --gc-sections -u $(IMAGE_ENTRY_POINT) -e $(IMAGE_ENTRY_POINT) -Map $(DEST_DIR_DEBUG)/$(BASE_NAME).map