Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2018 21:17:23 +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-M8su6j8GAP@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 #3 from Mark Johnston <markj@FreeBSD.org> ---
Looks like the binutils maintainers consider our use of _end to be a bug:
https://sourceware.org/bugzilla/show_bug.cgi?id=23161

I don't see how we can implement brk()/sbrk() without it though. Looking at
glibc, they initialize curbrk using a seemingly undocumented kernel interface:
on Linux, the brk() system call returns the current break address if the input
break value is 0. Our SYS_break system call currently does not have a return
value... perhaps the right solution here is to add a similar hack and use that
in libc to initialize curbrk.

-- 
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-M8su6j8GAP>