Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2016 20:58:38 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Andriy Gapon <avg@FreeBSD.org>, freebsd-toolchain@FreeBSD.org
Subject:   Re: warning: DWARF2 only supports one section per compilation unit
Message-ID:  <20160329175838.GP1741@kib.kiev.ua>
In-Reply-To: <CE562E63-31BF-4C50-BAB9-7CF3C9756B3F@FreeBSD.org>
References:  <56FA94ED.1060402@FreeBSD.org> <CE562E63-31BF-4C50-BAB9-7CF3C9756B3F@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160329175838.GP1741>