https://sourceware.org/bugzilla/show_bug.cgi?id=23161
Mark Johnston <markj at FreeBSD dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj at FreeBSD dot org --- Comment #2 from Mark Johnston <markj at FreeBSD dot org> --- (In reply to Alan Modra from comment #1) FreeBSD's libc uses _end to initialize curbrk. At a glance, OpenBSD and NetBSD appear to do this as well. For this use case it is crucial that _end be present in the executable's dynsym, since libc will otherwise use its internal definition. I peeked at the glibc sources; it seems that they rely on Linux's brk() system call returning the current break value when given an input of 0. This is used to lazily initialize the curbrk. We could probably add a similar hack to FreeBSD to get around this, but as noted, we're not the only ones relying on this behaviour. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils