Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2016 08:20:30 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300406 - head/lib/csu/aarch64
Message-ID:  <201605220820.u4M8KUXZ093578@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605220820.u4M8KUXZ093578>