From owner-freebsd-toolchain@freebsd.org Tue Mar 29 17:58:43 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4842BAE25A1 for ; Tue, 29 Mar 2016 17:58:43 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CF57A1CA1; Tue, 29 Mar 2016 17:58:42 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u2THwcqM026933 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 29 Mar 2016 20:58:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u2THwcqM026933 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u2THwc8n026932; Tue, 29 Mar 2016 20:58:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 29 Mar 2016 20:58:38 +0300 From: Konstantin Belousov To: Dimitry Andric Cc: Andriy Gapon , freebsd-toolchain@FreeBSD.org Subject: Re: warning: DWARF2 only supports one section per compilation unit Message-ID: <20160329175838.GP1741@kib.kiev.ua> References: <56FA94ED.1060402@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2016 17:58:43 -0000 On Tue, Mar 29, 2016 at 07:49:14PM +0200, Dimitry Andric wrote: > These are harmless, and have been showing up for at least a year now. > Clang is just notifying you that due to DWARF2 limitations, it will not > emit debug info for more than one code section. > > All such warnings in our tree are about artificially added sections, > such as .note.GNU-stack, .reloc and __xen_guest, and it is not likely > that anybody cares that those sections will not have debug info. > > Lastly, I never found an option to shut up the warnings. Well, apart > from using -gdwarf-4. :-) .note.GNU-stack should not have any content at all. Issuing the warning for empty section is pointless, and it would hide in the noise a real bug if anything migrates under the section.