diff packages/hal/i386/arch/current/src/i386.ld @ 795:db69ea2c9293

Update various .ld and .ldi files to cope with C++ and fix some typos. Also add a test program for C++ support to infra package. See individual ChangeLogs for details.
author nickg
date Wed, 16 Apr 2003 17:55:07 +0000
parents d2c90368aeef
children
line wrap: on
line diff
--- a/packages/hal/i386/arch/current/src/i386.ld
+++ b/packages/hal/i386/arch/current/src/i386.ld
@@ -53,7 +53,11 @@ ENTRY(_start)
 #ifdef EXTRAS
 INPUT(extras.o)
 #endif
+#if (__GNUC__ >= 3)
+GROUP(libtarget.a libgcc.a libsupc++.a)
+#else
 GROUP(libtarget.a libgcc.a)
+#endif
 
 #define ALIGN_LMA 8
 #define FOLLOWING(_section_) AT ((LOADADDR (_section_) + SIZEOF (_section_) + ALIGN_LMA - 1) & ~ (ALIGN_LMA - 1))