Browse Source

Remove the C++ support stubs, since these now live elsewhere and
these stubs were preventing the real stuff from working properly.
-Erik

Eric Andersen 23 years ago
parent
commit
a222ff0b49

+ 0 - 14
libc/sysdeps/linux/arm/crt0.S

@@ -92,17 +92,3 @@ _start:
 	/* Ok, now run uClibc's main() -- shouldn't return */
 	bl	__uClibc_main
 
-#if 0 /* this is already provided by crtbegin/crtend in the arm-elf compiler */
-/* a little bit of stuff to support C++ */
-	.section .ctors,"aw"
-	.align 4
-	.global __CTOR_LIST__
-__CTOR_LIST__:
-	.long -1
-
-	.section .dtors,"aw"
-	.align 4
-	.global __DTOR_LIST__
-__DTOR_LIST__:
-	.long -1
-#endif

+ 0 - 14
libc/sysdeps/linux/h8300/crt0.S

@@ -53,17 +53,3 @@ empty_func:
 	.set atexit,empty_func
 #endif
 
-/*
- *	a little bit of stuff to support C++
- */
-	.section .ctors,"aw"
-	.align 4
-	.global __CTOR_LIST__
-__CTOR_LIST__:
-	.long -1
-
-	.section .dtors,"aw"
-	.align 4
-	.global __DTOR_LIST__
-__DTOR_LIST__:
-	.long -1

+ 0 - 13
libc/sysdeps/linux/i386/crt0.S

@@ -77,16 +77,3 @@ _start:
 	/* Ok, now run uClibc's main() -- shouldn't return */
 	call __uClibc_main
 
-/* a little bit of stuff to support C++ */
-	.section .ctors,"aw"
-	.align 4
-	.global __CTOR_LIST__
-__CTOR_LIST__:
-	.long -1
-
-	.section .dtors,"aw"
-	.align 4
-	.global __DTOR_LIST__
-__DTOR_LIST__:
-	.long -1
-

+ 0 - 6
libc/sysdeps/linux/i386/crt0.c

@@ -21,12 +21,6 @@
 
 extern void __uClibc_main(int argc,void *argv,void *envp);
 
-/* a little bit of stuff to support C++ */
-__asm__(".section .ctors,\"aw\"\n.align 4\n.global __CTOR_LIST__\n"
-	"__CTOR_LIST__:\n.long -1\n");
-
-__asm__(".section .dtors,\"aw\"\n.align 4\n.global __DTOR_LIST__\n"
-	"__DTOR_LIST__:\n.long -1\n");
 
 void _start(unsigned int first_arg)
 {

+ 0 - 15
libc/sysdeps/linux/m68k/crt0.S

@@ -60,18 +60,3 @@ empty_func:
 	.set atexit,empty_func
 #endif
 
-/*
- *	a little bit of stuff to support C++
- */
-	.section .ctors,"aw"
-	.align 4
-	.global __CTOR_LIST__
-__CTOR_LIST__:
-	.long -1
-
-	.section .dtors,"aw"
-	.align 4
-	.global __DTOR_LIST__
-__DTOR_LIST__:
-	.long -1
-

+ 0 - 6
libc/sysdeps/linux/m68k/crt0.c

@@ -21,12 +21,6 @@
 
 extern void __uClibc_main(int argc,void *argv,void *envp);
 
-/* a little bit of stuff to support C++ */
-__asm__(".section .ctors,\"aw\"\n.align 4\n.global __CTOR_LIST__\n"
-	"__CTOR_LIST__:\n.long -1\n");
-
-__asm__(".section .dtors,\"aw\"\n.align 4\n.global __DTOR_LIST__\n"
-	"__DTOR_LIST__:\n.long -1\n");
 
 void _start(unsigned int first_arg)
 {

+ 0 - 14
libc/sysdeps/linux/mips/crt0.S

@@ -34,17 +34,3 @@ __start:
 	jal	__uClibc_main
 	hlt:    b hlt                   /* Crash if somehow it does return.  */
 
-#if 0 /* this should be provided by crtbegin/crtend in the compiler */
-/* a little bit of stuff to support C++ */
-	.section .ctors,"aw"
-	.align 4
-	.global __CTOR_LIST__
-__CTOR_LIST__:
-	.long -1
-
-	.section .dtors,"aw"
-	.align 4
-	.global __DTOR_LIST__
-__DTOR_LIST__:
-	.long -1
-#endif

+ 0 - 13
libc/sysdeps/linux/powerpc/crt0.S

@@ -55,16 +55,3 @@ _start:
 
 	bl	__uClibc_main
 	
-/* a little bit of stuff to support C++ */
-	.section .ctors,"aw"
-	.align 4
-	.global __CTOR_LIST__
-__CTOR_LIST__:
-	.long -1
-
-	.section .dtors,"aw"
-	.align 4
-	.global __DTOR_LIST__
-__DTOR_LIST__:
-	.long -1
-

+ 0 - 13
libc/sysdeps/linux/powerpc/crt0.c

@@ -36,19 +36,6 @@ asm(
 	
 	");
 
-/* a little bit of stuff to support C++ */
-asm(
-	"\t.section .ctors,\"aw\"\n"
-	"\t.align 4\n"
-	"\t.global __CTOR_LIST__\n"
-	"__CTOR_LIST__:\n"
-	"\t.long -1\n"
-	"\t.section .dtors,\"aw\"\n"
-	"\t.align 4\n"
-	"\t.global __DTOR_LIST__\n"
-	"__DTOR_LIST__:\n"
-	"\t.long -1\n"
-	);
 
 void __uClibc_main(int argc,void *argv,void *envp);
 

+ 0 - 6
libc/sysdeps/linux/sparc/crt0.c

@@ -21,12 +21,6 @@
 
 extern void __uClibc_main(int argc,void *argv,void *envp);
 
-/* a little bit of stuff to support C++ */
-__asm__(".section .ctors,\"aw\"\n.align 4\n.global __CTOR_LIST__\n"
-	"__CTOR_LIST__:\n.long -1\n");
-
-__asm__(".section .dtors,\"aw\"\n.align 4\n.global __DTOR_LIST__\n"
-	"__DTOR_LIST__:\n.long -1\n");
 
 void _start(unsigned int first_arg)
 {