diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-11-15 09:12:40 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-11-15 09:12:40 +0000 |
commit | 7f4745c277473e6f20cb988ba4dbd2364e24dd16 (patch) | |
tree | a8de9b795ffa204f9e0817e1cbdd1717b8eec820 | |
parent | 71b7921b4f137352480cbefce07695480f84198c (diff) |
Fix comments. Attempt at c++ global constructor support.
-rw-r--r-- | libc/sysdeps/linux/mips/crt0.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/mips/crt0.c b/libc/sysdeps/linux/mips/crt0.c index df9304101..90a8f82b1 100644 --- a/libc/sysdeps/linux/mips/crt0.c +++ b/libc/sysdeps/linux/mips/crt0.c @@ -1,6 +1,6 @@ /* - * uC-libc/sysdeps/linux/powerpc/crt0.S - * process init code for powerpc + * uC-libc/sysdeps/linux/mipsel/crt0.c + * process init code for mipsel * * Copyright (C) 2001 by Lineo, Inc. * Author: David A. Schleef <ds@schleef.org> @@ -30,6 +30,20 @@ asm( ); #endif +/* 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); void __start(void) |