This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
Community source repository for glibc add-on ports branch, master, updated. glibc-2.12-49-g4f46492
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 30 Dec 2010 21:37:12 -0000
- Subject: Community source repository for glibc add-on ports branch, master, updated. glibc-2.12-49-g4f46492
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Community source repository for glibc add-on ports".
The branch, master has been updated
via 4f464927309f6c5a491f388e485c7ce5c95b0835 (commit)
from a2bfcf6de8f306e7ff76c7859b8b93549641425c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc-ports.git;a=commitdiff;h=4f464927309f6c5a491f388e485c7ce5c95b0835
commit 4f464927309f6c5a491f388e485c7ce5c95b0835
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu Dec 30 21:36:54 2010 +0000
Handle NO_CTORS_DTORS_SECTIONS for MIPS.
diff --git a/ChangeLog.mips b/ChangeLog.mips
index a52a7fd..0d933f3 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,3 +1,9 @@
+2010-12-30 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/mips/init-first.c: Don't call __libc_global_ctors if
+ NO_CTORS_DTORS_SECTIONS is defined.
+ * sysdeps/mach/hurd/mips/init-first.c: Likewise.
+
2010-12-21 Joseph Myers <joseph@codesourcery.com>
* sysdeps/mips/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
diff --git a/sysdeps/mach/hurd/mips/init-first.c b/sysdeps/mach/hurd/mips/init-first.c
index 6f53e83..2b16cde 100644
--- a/sysdeps/mach/hurd/mips/init-first.c
+++ b/sysdeps/mach/hurd/mips/init-first.c
@@ -1,5 +1,5 @@
/* Initialization code run first thing by the ELF startup code. For Mips/Hurd.
- Copyright (C) 1996,1997,1998,2000,01,02,03 Free Software Foundation, Inc.
+ Copyright (C) 1996,1997,1998,2000,01,02,03,10 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -119,7 +119,7 @@ init1 (int argc, char *arg0, ...)
__getopt_clean_environment (envp);
#endif
-#ifdef SHARED
+#if defined SHARED && !defined NO_CTORS_DTORS_SECTIONS
__libc_global_ctors ();
#endif
diff --git a/sysdeps/mips/init-first.c b/sysdeps/mips/init-first.c
index b67a444..1390f99 100644
--- a/sysdeps/mips/init-first.c
+++ b/sysdeps/mips/init-first.c
@@ -1,5 +1,5 @@
/* Initialization code run first thing by the ELF startup code. For mips/Unix.
- Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -50,7 +50,9 @@ _init (int argc, ...)
{
init (&argc);
+#ifndef NO_CTORS_DTORS_SECTIONS
__libc_global_ctors ();
+#endif
}
#endif
-----------------------------------------------------------------------
Summary of changes:
ChangeLog.mips | 6 ++++++
sysdeps/mach/hurd/mips/init-first.c | 4 ++--
sysdeps/mips/init-first.c | 4 +++-
3 files changed, 11 insertions(+), 3 deletions(-)
hooks/post-receive
--
Community source repository for glibc add-on ports