diff --git a/gcc-11.2.0/gcc/config.gcc b/gcc-11.2.0/gcc/config.gcc index 6e2526d..6166fd7 100644 --- a/gcc-11.2.0/gcc/config.gcc +++ b/gcc-11.2.0/gcc/config.gcc @@ -3252,6 +3252,7 @@ sh-*-elf* | sh[12346l]*-*-elf* | \ tm_file="${tm_file} sh/embed-elf.h" tm_file="${tm_file} sh/superh.h" extra_options="${extra_options} sh/superh.opt" ;; + sh*-*-vhex*) tm_file="${tm_file} sh/vhex.h" ;; *) if test x$with_newlib = xyes \ && test x$with_libgloss = xyes; then tm_file="${tm_file} sh/newlib.h" diff --git a/gcc-11.2.0/gcc/config/sh/vhex.h b/gcc-11.2.0/gcc/config/sh/vhex.h new file mode 100644 index 0000000..beb9263 --- /dev/null +++ b/gcc-11.2.0/gcc/config/sh/vhex.h @@ -0,0 +1,16 @@ +#undef STARTFILE_SPEC +#define STARTFILE_SPEC \ + "" + +#undef ENDFILE_SPEC +#define ENDFILE_SPEC \ + "" + +#undef LIB_SPEC +#define LIB_SPEC "-lc" + +#undef USER_LABEL_PREFIX +#define USER_LABEL_PREFIX "_" + +#undef LINK_SPEC +#define LINK_SPEC SH_LINK_SPEC "%{shared:-shared} %{static:-static} %{!shared: %{!static: %{rdynamic:-export-dynamic}}}" diff --git a/gcc-11.2.0/libgcc/config.host b/gcc-11.2.0/libgcc/config.host index bbdc863..c5b6088 100644 --- a/gcc-11.2.0/libgcc/config.host +++ b/gcc-11.2.0/libgcc/config.host @@ -1359,7 +1359,8 @@ sh-*-rtems*) libgcc-Os-4-200.a libgcc-4-300.a" ;; sh*-*-vhex*) - tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc t-libgcc-pic" + tmake_file="${tmake_file} sh/t-sh t-slibgcc t-slibgcc-libgcc t-libgcc-pic \ + t-fdpbit" ;; sh-wrs-vxworks) tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"