summaryrefslogtreecommitdiff
path: root/libgcc/config/c6x/t-elf
diff options
context:
space:
mode:
Diffstat (limited to 'libgcc/config/c6x/t-elf')
-rw-r--r--libgcc/config/c6x/t-elf14
1 files changed, 14 insertions, 0 deletions
diff --git a/libgcc/config/c6x/t-elf b/libgcc/config/c6x/t-elf
index 89b68969ae8..99d0cd2d5ca 100644
--- a/libgcc/config/c6x/t-elf
+++ b/libgcc/config/c6x/t-elf
@@ -1 +1,15 @@
+# Cannot use default rules due to $(CRTSTUFF_T_CFLAGS).
+CUSTOM_CRTIN = yes
+
+# Assemble startup files.
+crti.o: $(srcdir)/config/c6x/crti.S
+ $(crt_compile) -c $(CRTSTUFF_T_CFLAGS) $<
+
+crtn.o: $(srcdir)/config/c6x/crtn.S
+ $(crt_compile) -c $(CRTSTUFF_T_CFLAGS) $<
+
+# Avoid failures when the user's GOT becomes too large.
+CRTSTUFF_T_CFLAGS = -msdata=none
+CRTSTUFF_T_CFLAGS_S = -msdata=none
+
SHLIB_MAPFILES += $(srcdir)/config/c6x/libgcc-eabi.ver