From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from muon.cran.org.uk (muon.bluestop.org [74.50.51.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 892DE1A1E89 for ; Mon, 3 Oct 2016 09:13:13 -0700 (PDT) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 0119A94442; Mon, 3 Oct 2016 16:13:13 +0000 (UTC) Received: from muon.cran.org.uk ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WIf7CIlftO4B; Mon, 3 Oct 2016 16:13:12 +0000 (UTC) Received: from [10.0.10.17] (c-67-171-116-44.hsd1.ut.comcast.net [67.171.116.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA; Mon, 3 Oct 2016 16:13:12 +0000 (UTC) To: Laszlo Ersek , Ard Biesheuvel References: <1475221478-2252-1-git-send-email-yonghong.zhu@intel.com> <5abd5d33-2301-e32f-12ed-2154748a6bee@redhat.com> <162b108f-7fc1-8402-0bd5-dcb099f0a0a8@redhat.com> Cc: "Jordan Justen (Intel address)" , edk2-devel@ml01.01.org, Liming Gao , andrey.warkentin@gmail.com From: Bruce Cran Message-ID: <8704782d-411a-e085-eaf3-b177f36ffa1c@cran.org.uk> Date: Mon, 3 Oct 2016 10:13:11 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <162b108f-7fc1-8402-0bd5-dcb099f0a0a8@redhat.com> Subject: Re: [Patch] BaseTools: support the NOOPT target with the GCC tool chains X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2016 16:13:13 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 10/3/2016 10:09 AM, Laszlo Ersek wrote: > "BaseTools/Scripts/GccBase.lds" discards the gnu_debuglink section -- > intentionally, from commit efe690cab3fb5 ("BaseTools GCC: add unified > GCC linker script for all archs and versions"). > > If this section is necessary for debugging, then why does the DEBUG > build work? In other words, why does the DEBUG build contain > gnu_debuglink despite the discard rule? Ard, any idea? tools_def.template contains a command to add it: DEBUG_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug I've followed up with the original email to say that adding a NOOPT line fixes debugging for me. -- Bruce