diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-12-24 20:14:37 -0500 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2013-01-28 09:58:32 -0800 |
commit | 91a47ba45fc70b7fce405f05b0543296a4509aa1 (patch) | |
tree | 2b0509bc5a2f0a562187d43f1f08dae5a5b9480c /sysdeps | |
parent | df79688ef6f6c746ecb4cc2e212780832e2f9c87 (diff) | |
download | glibc-91a47ba45fc70b7fce405f05b0543296a4509aa1.tar.gz glibc-91a47ba45fc70b7fce405f05b0543296a4509aa1.tar.xz glibc-91a47ba45fc70b7fce405f05b0543296a4509aa1.zip |
Remove `.ctors' and `.dtors' output sections hjl/ctor/release/2.11
Conflicts: ChangeLog configure
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/i386/init-first.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/i386/init-first.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/powerpc/init-first.c | 2 | ||||
-rw-r--r-- | sysdeps/sh/init-first.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/init-first.c | 2 |
5 files changed, 7 insertions, 3 deletions
diff --git a/sysdeps/i386/init-first.c b/sysdeps/i386/init-first.c index c6355a8b7b..2af042fe4b 100644 --- a/sysdeps/i386/init-first.c +++ b/sysdeps/i386/init-first.c @@ -59,7 +59,9 @@ _init (int argc, ...) { init (&argc); +#ifndef NO_CTORS_DTORS_SECTIONS __libc_global_ctors (); +#endif } #endif diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c index f9a7a58deb..60823bd789 100644 --- a/sysdeps/mach/hurd/i386/init-first.c +++ b/sysdeps/mach/hurd/i386/init-first.c @@ -92,7 +92,7 @@ posixland_init (int argc, char **argv, char **envp) __getopt_clean_environment (envp); #endif -#ifdef SHARED +#if defined SHARED && !defined NO_CTORS_DTORS_SECTIONS __libc_global_ctors (); #endif } diff --git a/sysdeps/mach/hurd/powerpc/init-first.c b/sysdeps/mach/hurd/powerpc/init-first.c index 20fa1d4f12..21b5054b0a 100644 --- a/sysdeps/mach/hurd/powerpc/init-first.c +++ b/sysdeps/mach/hurd/powerpc/init-first.c @@ -82,7 +82,7 @@ posixland_init (int argc, char **argv, char **envp) __getopt_clean_environment (__environ); #endif -#ifdef SHARED +#if defined SHARED && !defined NO_CTORS_DTORS_SECTIONS __libc_global_ctors (); #endif } diff --git a/sysdeps/sh/init-first.c b/sysdeps/sh/init-first.c index d816625ef4..1f3a821fea 100644 --- a/sysdeps/sh/init-first.c +++ b/sysdeps/sh/init-first.c @@ -59,7 +59,9 @@ _init (int argc, ...) { init (&argc); +#ifndef NO_CTORS_DTORS_SECTIONS __libc_global_ctors (); +#endif } #endif diff --git a/sysdeps/unix/sysv/linux/init-first.c b/sysdeps/unix/sysv/linux/init-first.c index 7b2333d4bf..a60212f4ed 100644 --- a/sysdeps/unix/sysv/linux/init-first.c +++ b/sysdeps/unix/sysv/linux/init-first.c @@ -93,7 +93,7 @@ _init (int argc, char **argv, char **envp) __getopt_clean_environment (envp); #endif -#ifdef SHARED +#if defined SHARED && !defined NO_CTORS_DTORS_SECTIONS __libc_global_ctors (); #endif } |