Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove .ctors' and .dtors' output sections
  • Loading branch information
H.J. Lu authored and Ulrich Drepper committed Dec 25, 2010
1 parent 07eb4b7 commit 4a531bb
Show file tree
Hide file tree
Showing 11 changed files with 209 additions and 159 deletions.
15 changes: 15 additions & 0 deletions ChangeLog
@@ -1,3 +1,18 @@
2010-12-15 H.J. Lu <hongjiu.lu@intel.com>

* config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
* configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
script has SORT_BY_INIT_PRIORITY.
* elf/sofini.c: Remove `.ctors' and `.dtors' sections if
NO_CTORS_DTORS_SECTIONS is defined.
* elf/soinit.c: Likewise.
* sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
NO_CTORS_DTORS_SECTIONS is defined.
* sysdeps/mach/hurd/i386/init-first.c: Likewise.
* sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
* sysdeps/sh/init-first.c: Likewise.
* sysdeps/unix/sysv/linux/init-first.c: Likewise.

2010-12-24 Ulrich Drepper <drepper@gmail.com>

* stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
Expand Down
3 changes: 3 additions & 0 deletions config.h.in
Expand Up @@ -201,6 +201,9 @@
/* Define if multi-arch DSOs should be generated. */
#undef USE_MULTIARCH

/* Define if `.ctors' and `.dtors' sections shouldn't be used. */
#undef NO_CTORS_DTORS_SECTIONS

/*
*/

Expand Down

0 comments on commit 4a531bb

Please sign in to comment.