From patchwork Fri Feb 6 13:52:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 44483 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4A07121521 for ; Fri, 6 Feb 2015 13:52:13 +0000 (UTC) Received: by mail-we0-f198.google.com with SMTP id p10sf7019234wes.1 for ; Fri, 06 Feb 2015 05:52:12 -0800 (PST) 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: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=trh2bY4gQ960UaXFCP5j4Fbv4M85mg9H+1HA5ff4pZw=; b=F6xDCidJLwZuCFCCKyKA3+8tMG125f/czn5vC3aDiI7C7UHEGHo4mlXPCfckcAjoLW qjJWviMGAsyu3E5blB4MuBf17O1AVepG2G8/Iv5arDjLiE+WQBULAgxEnYmmhjN1ey8Z unaqQxZXRtQ+qI5pQCn1LO1pDPSndZ0gAoFed6lN0BOHovD63q1U2mffG7yQTVg8EtdW LuTIuasIYJZibpPRa98Fj8EniVJUDOdLLMjBIdR5do1031rJTLyH8v5lHBzTBVGfif38 aqrh2FBibLKQoU8aBLt4KHvrgysIhWZK/zigTRCUwXKzR6644gX4F2zkok1ukEQ1fuCY c1hg== X-Gm-Message-State: ALoCoQk0c8pJPIU4ntK97GLAKJ6j8KZ8jrcKEG2ARzTu94Or97V9i5NsOszOBXqWp+mb1jqgqAac X-Received: by 10.180.212.76 with SMTP id ni12mr298865wic.0.1423230732409; Fri, 06 Feb 2015 05:52:12 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.42 with SMTP id n10ls266967laj.95.gmail; Fri, 06 Feb 2015 05:52:12 -0800 (PST) X-Received: by 10.152.8.104 with SMTP id q8mr2902806laa.56.1423230732242; Fri, 06 Feb 2015 05:52:12 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id cf5si1358589lbd.144.2015.02.06.05.52.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Feb 2015 05:52:12 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id b6so18008940lbj.11 for ; Fri, 06 Feb 2015 05:52:12 -0800 (PST) X-Received: by 10.112.213.38 with SMTP id np6mr2832015lbc.36.1423230732086; Fri, 06 Feb 2015 05:52:12 -0800 (PST) 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.35.133 with SMTP id h5csp1815384lbj; Fri, 6 Feb 2015 05:52:11 -0800 (PST) X-Received: by 10.107.153.80 with SMTP id b77mr10240401ioe.63.1423230730646; Fri, 06 Feb 2015 05:52:10 -0800 (PST) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id l5si674163igf.52.2015.02.06.05.52.09 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 06 Feb 2015 05:52:10 -0800 (PST) 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-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YJjKC-0001qY-D3; Fri, 06 Feb 2015 13:52:00 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YJjKA-0001qN-RH for edk2-devel@lists.sourceforge.net; Fri, 06 Feb 2015 13:51:58 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of linaro.org designates 74.125.82.50 as permitted sender) client-ip=74.125.82.50; envelope-from=leif.lindholm@linaro.org; helo=mail-wg0-f50.google.com; Received: from mail-wg0-f50.google.com ([74.125.82.50]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YJjK7-0000Sf-8u for edk2-devel@lists.sourceforge.net; Fri, 06 Feb 2015 13:51:58 +0000 Received: by mail-wg0-f50.google.com with SMTP id b13so13567736wgh.9 for ; Fri, 06 Feb 2015 05:51:49 -0800 (PST) X-Received: by 10.180.37.197 with SMTP id a5mr3701164wik.2.1423230709202; Fri, 06 Feb 2015 05:51:49 -0800 (PST) Received: from mohikan.mushroom.smurfnet.nu (cpc4-cmbg17-2-0-cust71.5-4.cable.virginm.net. [86.14.224.72]) by mx.google.com with ESMTPSA id li7sm1593688wic.4.2015.02.06.05.51.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Feb 2015 05:51:48 -0800 (PST) From: Leif Lindholm To: edk2-devel@lists.sourceforge.net Date: Fri, 6 Feb 2015 13:52:22 +0000 Message-Id: <1423230742-26589-1-git-send-email-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.1.3 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 -0.0 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1YJjK7-0000Sf-8u Cc: linaro-uefi@lists.linaro.org Subject: [edk2] [PATCH] BaseTools: aarch64: add -fno-asynchronous-unwind-tables to 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.180 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 f008024..04fdeba 100644 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -3817,7 +3817,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= -Ttext=0x0 --emit-relocs -nostdlib --gc-sections -u $(IMAGE_ENTRY_POINT) -e $(IMAGE_ENTRY_POINT) -Map $(DEST_DIR_DEBUG)/$(BASE_NAME).map