diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-08-28 17:15:53 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-08-28 17:15:53 +0000 |
commit | 1220fd70ca9b9534a2b831bd9f937436968b5d07 (patch) | |
tree | 68fe1509bf46f230a610c8f9d3631ea94026dc8b /libc/sysdeps/linux/arm | |
parent | 22e8adca0dc97c39af187d1ce1ba1cd962b6ca0a (diff) |
This will hopefully make global constructors and destructors work
Diffstat (limited to 'libc/sysdeps/linux/arm')
-rw-r--r-- | libc/sysdeps/linux/arm/crt0.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/arm/crt0.S b/libc/sysdeps/linux/arm/crt0.S index 243977b7f..01bcb321f 100644 --- a/libc/sysdeps/linux/arm/crt0.S +++ b/libc/sysdeps/linux/arm/crt0.S @@ -62,3 +62,15 @@ _start: /* Ok, now run uClibc's main() -- shouldn't return */ 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 |