Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2019 20:06:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 241257] ld.lld should be built as a static binary
Message-ID:  <bug-241257-29464-5EW1yrJPKp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241257-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-241257-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241257

--- Comment #8 from Dimitry Andric <dim@FreeBSD.org> ---
(In reply to Mike Cui from comment #5)
> Because the base toolchain binaries are static I can almost always run ne=
wer version on older systems. When I tried this going to 12.1 RC it didn't =
work because ld.lld depended on a libc symbol I didn't have in 11.

I understand that it can be a time-saver, but in general, even a statically
linked binary from a newer release (and certainly a major release) is not
guaranteed to run on an older kernel, specifically because there may have b=
een
changes in syscalls.

That said, compilers and linkers tend to use a relatively minor set of thos=
e,
and also the ones that don't change behavior very often (e.g. reading/writi=
ng
files, basic process management).  So these are less likely to break. :)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241257-29464-5EW1yrJPKp>