Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2018 20:16:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 228574] GNU ld doesn't emit _end when linking with lld-linked libc.so
Message-ID:  <bug-228574-227-OFO0tsGcn2@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-228574-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-228574-227@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=228574

--- Comment #4 from Mark Johnston <markj@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228574-227-OFO0tsGcn2>