From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 842651A1E31 for ; Tue, 4 Oct 2016 18:32:08 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP; 04 Oct 2016 18:32:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,446,1473145200"; d="scan'208";a="16342876" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga005.jf.intel.com with ESMTP; 04 Oct 2016 18:32:08 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 4 Oct 2016 18:32:07 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.234]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.95]) with mapi id 14.03.0248.002; Wed, 5 Oct 2016 09:32:06 +0800 From: "Zhu, Yonghong" To: Laszlo Ersek , Bruce Cran , "Ard Biesheuvel" CC: "Justen, Jordan L" , "edk2-devel@ml01.01.org" , "Gao, Liming" , "andrey.warkentin@gmail.com" , "Zhu, Yonghong" Thread-Topic: [edk2] [Patch] BaseTools: support the NOOPT target with the GCC tool chains Thread-Index: AQHSGwNIRPr2Rw4vqku6IG+IyCZL1KCVc38AgAB5OoCAAHY7gIAAAeKAgAABGYCAAAstgIACp6Kw Date: Wed, 5 Oct 2016 01:32:05 +0000 Message-ID: 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> <8a96524f-f936-8bf5-379c-743ca497a085@redhat.com> In-Reply-To: <8a96524f-f936-8bf5-379c-743ca497a085@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWYzODY4OGEtYjMzZi00YjNjLTg3ZmItZmJhZDZiODIzY2I5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlNJbTJPem9GY3BVVnRPNytMd0lQaWhNcGhKNjUwcENXVWlcL3dZWTlZVU9VPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 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: Wed, 05 Oct 2016 01:32:08 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Laszlo and Bruce! I sent a V2 to add "NOOPT_*_*_OBJCOPY_ADDDEBUGFLAG =3D --add-gnu-debugl= ink=3D$(DEBUG_DIR)/$(MODULE_NAME).debug" Best Regards, Zhu Yonghong -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Lasz= lo Ersek Sent: Tuesday, October 4, 2016 12:53 AM To: Bruce Cran ; Ard Biesheuvel Cc: Justen, Jordan L ; edk2-devel@ml01.01.org; G= ao, Liming ; andrey.warkentin@gmail.com Subject: Re: [edk2] [Patch] BaseTools: support the NOOPT target with the GC= C tool chains On 10/03/16 18:13, Bruce Cran wrote: > On 10/3/2016 10:09 AM, Laszlo Ersek wrote: >=20 >> "BaseTools/Scripts/GccBase.lds" discards the gnu_debuglink section --=20 >> intentionally, from commit efe690cab3fb5 ("BaseTools GCC: add unified=20 >> GCC linker script for all archs and versions"). >> >> If this section is necessary for debugging, then why does the DEBUG=20 >> build work? In other words, why does the DEBUG build contain=20 >> gnu_debuglink despite the discard rule? Ard, any idea? >=20 > tools_def.template contains a command to add it: >=20 > DEBUG_*_*_OBJCOPY_ADDDEBUGFLAG =3D > --add-gnu-debuglink=3D$(DEBUG_DIR)/$(MODULE_NAME).debug >=20 > I've followed up with the original email to say that adding a NOOPT=20 > line fixes debugging for me. >=20 Thank you, perfect! Laszlo _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel