Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2016 19:49:14 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        freebsd-toolchain@FreeBSD.org
Subject:   Re: warning: DWARF2 only supports one section per compilation unit
Message-ID:  <CE562E63-31BF-4C50-BAB9-7CF3C9756B3F@FreeBSD.org>
In-Reply-To: <56FA94ED.1060402@FreeBSD.org>
References:  <56FA94ED.1060402@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_53FCA829-50F9-4853-8073-0BC39C5651F6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 29 Mar 2016, at 16:45, Andriy Gapon <avg@FreeBSD.org> wrote:
>=20
> I've noticed many messages like the following during amd64 buildworld =
with very
> recent head:
>=20
>> warning: DWARF2 only supports one section per compilation unit
>> .section .note.GNU-stack,"",%progbits
>=20
> 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


--Apple-Mail=_53FCA829-50F9-4853-8073-0BC39C5651F6
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.29

iEYEARECAAYFAlb6wCYACgkQsF6jCi4glqNxYwCeNT0niNmQcjk5RvIjZbjj//RA
SzgAoPoVScz97R0dC1ZxQkeji/aqkf7y
=LzL7
-----END PGP SIGNATURE-----

--Apple-Mail=_53FCA829-50F9-4853-8073-0BC39C5651F6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CE562E63-31BF-4C50-BAB9-7CF3C9756B3F>