Hi,

avr-rtems uses _exit from newlib and therefore filter out _exit from LIB1ASMFUNCS.

I intend to commit the patch below, which is supposed to be a port of what RTEMS had used in gcc/config/avr/t-rtems in gcc < 4.7.

Ralf
2011-11-05  Ralf Corsépius  <ralf.corsep...@rtems.org>

        * config.host (avr-*-rtems*): Add config/avr/t-rtems.
        * config/avr/t-rtems: New.
        Filter out _exit from LIB1ASMFUNCS.

diff --git a/libgcc/config.host b/libgcc/config.host
index 01e7123..1834179 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -390,7 +390,7 @@ arm*-wince-pe*)
        tmake_file="$tmake_file arm/t-arm arm/t-wince-pe"
        ;;
 avr-*-rtems*)
-       tmake_file="$tmake_file avr/t-avr t-fpbit"
+       tmake_file="$tmake_file avr/t-avr avr/t-rtems t-fpbit"
        tm_file="$tm_file avr/avr-lib.h"
        # Don't use default.
        extra_parts=
diff --git a/libgcc/config/avr/t-rtems b/libgcc/config/avr/t-rtems
new file mode 100644
index 0000000..43b57ee
--- /dev/null
+++ b/libgcc/config/avr/t-rtems
@@ -0,0 +1,2 @@
+# RTEMS uses _exit from newlib
+LIB1ASMFUNCS := $(filter-out _exit,$(LIB1ASMFUNCS))

Reply via email to