Fixed NO_CTORS_DTORS_SECTIONS (xcc)
authorBrian Wheatman <wheatman@google.com>
Mon, 11 Jun 2018 20:20:33 +0000 (16:20 -0400)
committerbrho <brho@cs.berkeley.edu>
Wed, 13 Jun 2018 18:22:42 +0000 (14:22 -0400)
Fixed issue with __libc_global_ctors being linked
Found when updating binutils

Change-Id: I54df22c1e55428dd2c324da19e19cf495a780d0c
Signed-off-by: Brian Wheatman <wheatman@google.com>
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/init-first.c

index 0cee84b..56e70cd 100644 (file)
@@ -141,7 +141,7 @@ _init (int argc, char **argv, char **envp)
   /* Initialize ctype data.  */
   __ctype_init ();
 
-#ifdef SHARED
+#if defined SHARED && !defined NO_CTORS_DTORS_SECTIONS
   __libc_global_ctors ();
 #endif