-include ../../Makefile.cfg
ifeq ($(ARCH),x86)
- BFD := i586
+ BFD := i686
else ifeq ($(ARCH),x86_64)
BFD := x86_64
else
$(GCC_DIR)/%: patches/gcc/%.patch
@echo [PATCH] $@
- #@tar -xf $(GCC_ARCHIVE) $@
+ @tar -xf $(GCC_ARCHIVE) $@
@patch $@ $<
$(GCC_DIR)/%: patches/gcc/%
@echo [CP] $@
$(BINUTILS_DIR)/%: patches/binutils/%.patch
@echo [PATCH] $@
- #@tar -xf $(BINUTILS_ARCHIVE) $@
+ @tar -xf $(BINUTILS_ARCHIVE) $@
@patch $@ $<
$(BINUTILS_DIR)/%: patches/binutils/%
@echo [CP] $@
# Common parts for widely ported systems.
case ${target} in
+*-*-acess2*)
-+ extra_parts="crtbegin.o crtend.o"
++ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o crtendT.o"
+ gas=yes
+ gnu_ld=yes
+ default_use_cxa_atexit=yes
;;
+i[3-7]86-*-acess2*)
+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h newlib-stdint.h acess2.h"
-+ tmake_file="i386/t-i386elf t-svr4"
++ tmake_file="i386/t-i386elf i386/t-crtstuff t-svr4"
+ use_fixproto=yes
+ ;;
i[34567]86-*-elf*)
#define LIB_SPEC "-lc -lld-acess -lposix"
#define LIBSTDCXX "c++"
+#undef STARTFILE_SPEC
+#undef ENDFILE_SPEC
+#define STARTFILE_SPEC "crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s} %{shared:crt0S.o%s;:crt0.o%s}"
+#define ENDFILE_SPEC "%{static:crtendT.o%s;shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
+#undef LINK_SPEC
+#define LINK_SPEC "%{shared:-shared} %{!shared:%{!static:%{rdynamic:-export-dynamic}%{!dynamic-linker:-dynamic-linker /Acess/Libs/ld-acess.so}}}"
/*
#undef TARGET_VERSION // note that adding these two lines cause an error in gcc-4.7.0
tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
;;
+i[3-7]86-*-acess2*)
-+ extra_parts="crtbegin.o crtend.o"
++ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o crtendT.o"
+ tmake_file="$tmake_file i386/t-crtstuff"
+ ;;
+x86_64-*-acess2*)
-+ extra_parts="crtbegin.o crtend.o"
++ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o crtendT.o"
+ tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
+ ;;
i[34567]86-*-freebsd*)
-Subproject commit 9f2d7faf34c16ceaee2f1bffe3d5558c41382523
+Subproject commit a5d190a89ca3f3a78c8b44a855b044ff4e713bb3