[Bug 241257] ld.lld should be built as a static binary

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 16 20:06:17 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241257

--- Comment #8 from Dimitry Andric <dim at FreeBSD.org> ---
(In reply to Mike Cui from comment #5)
> Because the base toolchain binaries are static I can almost always run newer 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 been
changes in syscalls.

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

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


More information about the freebsd-toolchain mailing list