[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
Tue May 29 21:17:25 UTC 2018


--- Comment #3 from Mark Johnston <markj at FreeBSD.org> ---
Looks like the binutils maintainers consider our use of _end to be a bug:

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.

More information about the freebsd-bugs mailing list