warning: DWARF2 only supports one section per compilation unit

Dimitry Andric dim at FreeBSD.org
Tue Mar 29 17:49:31 UTC 2016


On 29 Mar 2016, at 16:45, Andriy Gapon <avg at FreeBSD.org> wrote:
> 
> I've noticed many messages like the following during amd64 buildworld with very
> recent head:
> 
>> warning: DWARF2 only supports one section per compilation unit
>> .section .note.GNU-stack,"",%progbits
> 
> Reported sections varied (e.g. there was .rodata).
> The messages seem to be related to .s files.
> I hope that those are harmless?

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. :-)

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20160329/785cf1ec/attachment.sig>


More information about the freebsd-toolchain mailing list