https://sourceware.org/bugzilla/show_bug.cgi?id=23161
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Mark Johnston from comment #2) > (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. In glibc, ld.so has /* These defined magically in the linker script. */ extern char _begin[] attribute_hidden; extern char _etext[] attribute_hidden; extern char _end[] attribute_hidden; it can't reference _end defined in executables. -- 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