Browse Source

* execute the real libc init/fini routines instead of dummies
(patch by Edmund Grimley Evans)

git-svn-id: trunk@31976 -

Jonas Maebe 10 years ago
parent
commit
36c6a190a8
1 changed files with 2 additions and 14 deletions
  1. 2 14
      rtl/linux/x86_64/cprt0.as

+ 2 - 14
rtl/linux/x86_64/cprt0.as

@@ -63,8 +63,8 @@ _start:
 	pushq %rsp
 
 	/* Pass address of our own entry points to .fini and .init.  */
-	movq _init_dummy@GOTPCREL(%rip), %rcx
-	movq _fini_dummy@GOTPCREL(%rip), %r8
+	movq __libc_csu_init@GOTPCREL(%rip), %rcx
+	movq __libc_csu_fini@GOTPCREL(%rip), %r8
 
 	movq main_stub@GOTPCREL(%rip), %rdi
 
@@ -115,18 +115,6 @@ _haltproc:
 	ret
 	.size   _haltproc,.-_haltproc
 
-	.globl _init_dummy
-        .type   _init_dummy, @function
-_init_dummy:
-        ret
-	.size   _init_dummy,.-_init_dummy
-
-	.globl  _fini_dummy
-        .type   _fini_dummy, @function
-_fini_dummy:
-        ret
-	.size   _fini_dummy,.-_fini_dummy
-
 /* Define a symbol for the first piece of initialized data.  */
 	.data
 	.globl __data_start