aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/bfin/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/bfin/elf.h')
-rw-r--r--gcc/config/bfin/elf.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/config/bfin/elf.h b/gcc/config/bfin/elf.h
new file mode 100644
index 00000000000..643d5197a67
--- /dev/null
+++ b/gcc/config/bfin/elf.h
@@ -0,0 +1,16 @@
+#define OBJECT_FORMAT_ELF
+
+#define LOCAL_LABEL_PREFIX "L$"
+
+#undef ASM_GENERATE_INTERNAL_LABEL
+#define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM) \
+ sprintf (LABEL, "*%s%s$%d", LOCAL_LABEL_PREFIX, PREFIX, (int) NUM)
+
+#undef STARTFILE_SPEC
+#define STARTFILE_SPEC "crt0%O%s crti%O%s crtbegin%O%s"
+
+#undef ENDFILE_SPEC
+#define ENDFILE_SPEC "crtend%O%s crtn%O%s"
+
+#undef USER_LABEL_PREFIX
+#define USER_LABEL_PREFIX "_"