svn commit: r300406 - head/lib/csu/aarch64
Andrew Turner
andrew at FreeBSD.org
Sun May 22 08:20:32 UTC 2016
Author: andrew
Date: Sun May 22 08:20:30 2016
New Revision: 300406
URL: https://svnweb.freebsd.org/changeset/base/300406
Log:
Stop dereferencing _end in crt1.c. This was only needed for brk/sbrk so is
no longer needed.
Sponsored by: ABT Systems Ltd
Modified:
head/lib/csu/aarch64/crt1.c
Modified: head/lib/csu/aarch64/crt1.c
==============================================================================
--- head/lib/csu/aarch64/crt1.c Sun May 22 07:50:10 2016 (r300405)
+++ head/lib/csu/aarch64/crt1.c Sun May 22 08:20:30 2016 (r300406)
@@ -71,17 +71,8 @@ __start(int argc, char *argv[], char *en
if (&_DYNAMIC != NULL)
atexit(cleanup);
- else {
- /*
- * Hack to resolve _end so we read the correct symbol.
- * Without this it will resolve to the copy in the library
- * that firsts requests it. We should fix the toolchain,
- * however this is is needed until this can take place.
- */
- *(volatile long *)&_end;
-
+ else
_init_tls();
- }
#ifdef GCRT
atexit(_mcleanup);
More information about the svn-src-all
mailing list