Avoid invalid unwind directives when building crti.o and crtn.o for ARM EABI.
authorPaul Brook <paul@codesourcery.com>
Tue, 30 Jun 2009 20:10:14 +0000 (20:10 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 30 Jun 2009 20:10:14 +0000 (20:10 +0000)
* sysdeps/arm/eabi/Makefile (CFLAGS-initfini.s): Add
-fno-asynchronous-unwind-tables -fno-unwind-tables.
(CFLAGS-pt-initfini.s): Ditto.

ChangeLog.arm
sysdeps/arm/eabi/Makefile

index ebc4e30..47aa61d 100644 (file)
@@ -1,3 +1,9 @@
+2009-06-30  Paul Brook  <paul@codesourcery.com>
+
+       * sysdeps/arm/eabi/Makefile (CFLAGS-initfini.s): Add
+       -fno-asynchronous-unwind-tables -fno-unwind-tables.
+       (CFLAGS-pt-initfini.s): Ditto.
+
 2009-06-25  Nathan Froyd  <froydnj@codesourcery.com>
 
        * sysdeps/arm/eabi/aeabi_lcsts.c (__aeabi_stdin, __aeabi_stdout,
index 890d1d9..05aede6 100644 (file)
@@ -3,6 +3,7 @@ aeabi_constants = aeabi_lcsts aeabi_sighandlers aeabi_math
 aeabi_routines = aeabi_assert aeabi_localeconv aeabi_errno_addr \
        aeabi_mb_cur_max aeabi_atexit aeabi_memclr aeabi_memcpy \
        aeabi_memmove aeabi_memset
+CFLAGS-initfini.s += -fno-asynchronous-unwind-tables -fno-unwind-tables
 
 sysdep_routines += $(aeabi_constants) $(aeabi_routines)
 static-only-routines += $(aeabi_constants)
@@ -24,3 +25,7 @@ endif
 ifeq ($(subdir),math)
 $(objpfx)libm.so: $(elfobjdir)/ld.so
 endif
+
+ifeq ($(subdir),nptl)
+CFLAGS-pt-initfini.s += -fno-asynchronous-unwind-tables -fno-unwind-tables
+endif