summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2016-05-22 08:20:30 +0000
committerandrew <andrew@FreeBSD.org>2016-05-22 08:20:30 +0000
commitcb152b7815cbe2ee6d48f4d443f3d0f3ee80cb85 (patch)
tree77710648766273b35f7bdd6f80077df5bef343a8
parentba8920d51c60e1f2bbe50aa9c8504207cf86bf9b (diff)
downloadFreeBSD-src-cb152b7815cbe2ee6d48f4d443f3d0f3ee80cb85.zip
FreeBSD-src-cb152b7815cbe2ee6d48f4d443f3d0f3ee80cb85.tar.gz
Stop dereferencing _end in crt1.c. This was only needed for brk/sbrk so is
no longer needed. Sponsored by: ABT Systems Ltd
-rw-r--r--lib/csu/aarch64/crt1.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/csu/aarch64/crt1.c b/lib/csu/aarch64/crt1.c
index 40279b7..a01897e 100644
--- a/lib/csu/aarch64/crt1.c
+++ b/lib/csu/aarch64/crt1.c
@@ -71,17 +71,8 @@ __start(int argc, char *argv[], char *env[], void (*cleanup)(void))
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);
OpenPOWER on IntegriCloud