===================================================================
@@ -38,12 +38,22 @@
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:crt0.o%s} crtbegin.o%s"
#undef ENDFILE_SPEC
#define ENDFILE_SPEC "crtend.o%s crtn.o%s"
+#undef ASM_SPEC
+#define ASM_SPEC "\
+%{mrelax:-relax} \
+"
+
+#undef LINK_SPEC
+#define LINK_SPEC "\
+%{mrelax:-relax} \
+"
+
#undef LIB_SPEC
#define LIB_SPEC " \
--start-group \
-lc \
-lsim \
%{fprofile-arcs|fprofile-generate|coverage:-lgcov} \
===================================================================
@@ -38,6 +38,10 @@ Enum(rl78_mul_types) String(none) Value(
EnumValue
Enum(rl78_mul_types) String(rl78) Value(MUL_RL78)
EnumValue
Enum(rl78_mul_types) String(g13) Value(MUL_G13)
+
+mrelax
+Target
+Enable assembler and linker relaxation.