From 1220fd70ca9b9534a2b831bd9f937436968b5d07 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 28 Aug 2001 17:15:53 +0000 Subject: This will hopefully make global constructors and destructors work --- libc/sysdeps/linux/powerpc/crt0.S | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libc/sysdeps/linux/powerpc/crt0.S') diff --git a/libc/sysdeps/linux/powerpc/crt0.S b/libc/sysdeps/linux/powerpc/crt0.S index 9eed91ebf..9866b20e9 100644 --- a/libc/sysdeps/linux/powerpc/crt0.S +++ b/libc/sysdeps/linux/powerpc/crt0.S @@ -55,4 +55,16 @@ _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 -- cgit v1.2.3