From b6aee522f17a54d13bef4c3b0e4d4087d4f6f0a7 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 17 Jan 2010 19:25:31 +0100 Subject: gcc: disable C++ constructors call --- AT91SAM7S256/SAM7S256/Include/Cstartup.S | 3 +++ 1 file changed, 3 insertions(+) (limited to 'AT91SAM7S256/SAM7S256/Include') diff --git a/AT91SAM7S256/SAM7S256/Include/Cstartup.S b/AT91SAM7S256/SAM7S256/Include/Cstartup.S index fd03c19..b60ba2c 100644 --- a/AT91SAM7S256/SAM7S256/Include/Cstartup.S +++ b/AT91SAM7S256/SAM7S256/Include/Cstartup.S @@ -48,6 +48,7 @@ #endif .set VECTREMAPPED_AUTODETECT, 0 +.set CPP_CONSTRUCTORS, 0 .if (RAM_MODE) @@ -306,6 +307,7 @@ LoopZI: CMP R1, R2 BLO LoopZI +.if (CPP_CONSTRUCTORS) /* call C++ constructors of global objects */ LDR r0, =__ctors_start__ LDR r1, =__ctors_end__ @@ -320,6 +322,7 @@ ctor_loop: LDMFD sp!, {r0-r1} B ctor_loop ctor_end: +.endif /* call main() */ -- cgit v1.2.3