Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 2021 20:56:56 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        Ed Maste <emaste@freebsd.org>
Cc:        "freebsd-toolchain@FreeBSD.org" <freebsd-toolchain@freebsd.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Compressed debug info sections and big-endian targets
Message-ID:  <20210810205656.GD4352@spindle.one-eyed-alien.net>
In-Reply-To: <CAPyFy2DkabryYfyPhPfzRg1fXQx47488NTh%2BOUOdDNuqNR37MQ@mail.gmail.com>
References:  <CAPyFy2DkabryYfyPhPfzRg1fXQx47488NTh%2BOUOdDNuqNR37MQ@mail.gmail.com>

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

--+g7M9IMkV8truYOl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Aug 07, 2021 at 12:07:39PM -0400, Ed Maste wrote:
> GCC and Clang/LLVM support coimpressed debug info, which compresses
> the .debug_* ELF sections in objects, archives, libraries, and
> executables. I recently committed build infrastructure changes to turn
> this on (c910570e7573) but it broke the build on big-endian targets
> (mips, powerpc) and so disabled it again (89ed2ecb14ce). PR257638 has
> more details.
>=20
> The lld bug is now fixed in main thanks to Simon Atanasyan upstream
> and dim@ for merging it over (d69d07569ee2), and I would like to
> enable it again.

I've committed the fix to devel/llvm12 and will merge to quarterly.
I'll follow up with an update to llvm-devel.  I've not investigated
if it can be merged to older ports.

> An outstanding issue is that the bug is triggered by the linker's
> input, and so this will occur if we attempt to link against a base
> system .a archive using a buggy lld. In the short term I think we have
> no choice but to leave compressed debug disabled on BE targets, until
> fixed lld versions are available in ports/packages.
>=20
> I have a review open to enable it for LE targets only:
> https://reviews.freebsd.org/D31454.
>=20
> I'd like to apply that change for now, but would like to enable
> compressed debug across all targets in the future. This would break,
> on big-endian targets, any port that has a build-dependency on an
> older lld and links against a base system archive. Such a port could
> be fixed by switching to linking with binutils ld, or lld from the
> base system or a newer package. What do big-endian mips or powerpc
> users think?

I'd be surprised if it was significant for mips given the generally
sorry state of the port.  Might be more exciting for powerpc where X11
works.  (As an aside, I suspect we'll have updated CHERI-LLVM to ~13
before we've caught CheriBSD up to this change and we may even manage to
give mips the boot before then.)

-- Brooks

--+g7M9IMkV8truYOl
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJhEugXAAoJEKzQXbSebgfAEJMH/RhfpD7pn/OXZBby78CtPcDu
1og1+UJsnhrjiu6gIFRiCQ6WR0f6n/I+PKkbyOCYPLLXX8oaKotOIvwDRQrIoy3b
KThFRJOFsHOV4V+QX3BhqohW5VvvLiMtyzpTokrFaD1zagZGfwDmULMRWIJwkiK3
Ady/uy8+HVLBctIoADkipsxMreX7CYndOU/u0a20g5JP6WUk9l/vXwI3nq6PSYmT
iY8urxXb+muRa/hvrm49h+5U/TUq+9RVzpS8Ike3nPOd0uy3/bMdMw+AAyfWbedM
U7texYoxU99G+1muIv6grHy+8lA+1qYSFYiYhW4ldMBll3RAix0detrzierJPVA=
=/dJt
-----END PGP SIGNATURE-----

--+g7M9IMkV8truYOl--



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