From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (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 53B611A1E1B for ; Mon, 3 Oct 2016 09:53:14 -0700 (PDT) Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D702C88E60; Mon, 3 Oct 2016 16:53:13 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-9.phx2.redhat.com [10.3.116.9]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u93GrBb6023817; Mon, 3 Oct 2016 12:53:12 -0400 To: Bruce Cran , 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> <8704782d-411a-e085-eaf3-b177f36ffa1c@cran.org.uk> Cc: "Jordan Justen (Intel address)" , edk2-devel@ml01.01.org, Liming Gao , andrey.warkentin@gmail.com From: Laszlo Ersek Message-ID: <8a96524f-f936-8bf5-379c-743ca497a085@redhat.com> Date: Mon, 3 Oct 2016 18:53:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <8704782d-411a-e085-eaf3-b177f36ffa1c@cran.org.uk> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 03 Oct 2016 16:53:13 +0000 (UTC) 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:53:14 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 10/03/16 18:13, Bruce Cran wrote: > 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. > Thank you, perfect! Laszlo