[Bug 228574] GNU ld doesn't emit _end when linking with lld-linked libc.so

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 31 20:16:52 UTC 2018


--- Comment #4 from Mark Johnston <markj at FreeBSD.org> ---
The solution proposed by the binutils developers is to emit _end, etc., only in
executables. To integrate that change, we'd have to remove _end from libc.so's
version map. However, this change would require lld to adopt the same
behaviour, since otherwise libc.so will use the internal definition of _end
when linked with lld, which will always be wrong. lld also needs to be tweaked
to emit _end if libc.so contains an undefined _end symbol. Currently it will
not emit _end in an executable if libc.so has an undefined reference to _end.

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

More information about the freebsd-bugs mailing list