From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::22f; helo=mail-wm0-x22f.google.com; envelope-from=paolo.bonzini@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 80ACC2035D0E7 for ; Wed, 8 Nov 2017 07:45:32 -0800 (PST) Received: by mail-wm0-x22f.google.com with SMTP id z3so11759793wme.5 for ; Wed, 08 Nov 2017 07:49:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xJc2CvGP/1Lu5ylk25J57tU7fVsZT9arWOog14TUW2A=; b=J+g6PpnojvtEiH2Ux/KbrNxLL+nuS1+AfsyFsFaIqCccmOF1z9mqkRgUvBZHzLl5nh /pbhbJb4H/yRru+shYnB2hiVkI4VbgtILHrHLxhTnED4NIyWnCWoepJpi+sgDW2N+ZU9 iHfqAfz45mei7yto5SRB/6AV8pcXWn/mW4Q5u8X++xRcFMJNuCxorN4k0+q68oI9dOe4 0nHXZpqp67r6IVXQEHJfGVBLTRR5+ChxSrC+6lBcayuRXbMv4wglYyQT1ir//YkQSya+ +WU5EW6jycE2O9i21ivEPyvcHY8ylVGTkbZKrmkbDnQAen41xR/aQulKJdNgtYmJICDr GVtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xJc2CvGP/1Lu5ylk25J57tU7fVsZT9arWOog14TUW2A=; b=T4NbPOZ8RNDtrrwUWH6ygqNNQkO4mwLV5CnYylI+cxM9ttFTf7wsvxl70ndgOfeNYB z7aYz/pXJN52UZR9dmD79ds3zuTtL0oIOhHz2ZpJag1/OjXfuO1R3oXmGEJB4xvTRmiB 6qiQVl5rL+W7qCo+R9D2kaaQI3ozroLXDi3Yh1fzeLt51F0eTbUKVxtgn0RlsIEWGz4U M+PKlnhs0UzfiI12aBb64gRoQ1jZRNxHfbqZydCwT2q7aIMGKpnYScQrxGETS32fGTzp 2QwCFRwFQ1Yjig6vUguoDcphgDX07YOWEOzg9CrNaifYEBZqIYEWwA3T3tmixIkYEOu5 Ldog== X-Gm-Message-State: AJaThX5Sq2hyHybPc5ckUEFZ0Hl7gnLxK7VLKvxHMT3bVE1aZGY8PDDY o/cQ2fpWZUF9eYOnWs4I86CmHCka X-Google-Smtp-Source: ABhQp+RKbbfO+bxFG/kKJqoWpwlPYwLbH570g1a4Muchmn258MPZH6WXnDxC8EoTSvJLABQ56eJjYA== X-Received: by 10.80.180.187 with SMTP id w56mr1192597edd.15.1510156171606; Wed, 08 Nov 2017 07:49:31 -0800 (PST) Received: from [192.168.10.165] (94-39-170-107.adsl-ull.clienti.tiscali.it. [94.39.170.107]) by smtp.googlemail.com with ESMTPSA id l4sm4736564edc.20.2017.11.08.07.49.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Nov 2017 07:49:29 -0800 (PST) Sender: Paolo Bonzini To: Heyi Guo , "edk2-devel@lists.01.org" References: <145387dc-028f-c75f-6df3-cb0ead996eb8@linaro.org> From: Paolo Bonzini Message-ID: <841a2bd0-5dbb-2cc0-74bd-a2489a32a448@redhat.com> Date: Wed, 8 Nov 2017 16:49:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <145387dc-028f-c75f-6df3-cb0ead996eb8@linaro.org> Subject: Re: Why do we use -g option of gcc even for RELEASE build? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2017 15:45:32 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 08/11/2017 03:25, Heyi Guo wrote: > From gcc manual, -g option seems to produce debugging information. In > tools_def.template, -g is included in GCC_ALL_CC_FLAGS, so it will also > be enabled for RELEASE build with gcc tool chain. Any special reason to > do that? Why *not* actually? Debug information only costs disk space, it is not part of the firmware image (and even for native Linux binaries it is not loaded in memory). Paolo