浏览代码

Thomas Chou says in bug 618: fix gcc to use crt1.o instead of crt0.o

Mike Frysinger 19 年之前
父节点
当前提交
48dad9737a
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      toolchain/gcc/3.4.2/900-nios2.patch
  2. 1 1
      toolchain/gcc/3.4.3/900-nios2.patch

+ 1 - 1
toolchain/gcc/3.4.2/900-nios2.patch

@@ -6989,7 +6989,7 @@
 +
 +
 +#undef STARTFILE_SPEC 
 +#undef STARTFILE_SPEC 
 +#define STARTFILE_SPEC  \
 +#define STARTFILE_SPEC  \
-+"%{msys-crt0=*: %*} %{!msys-crt0=*: crt0%O%s} \
++"%{msys-crt0=*: %*} %{!msys-crt0=*: crt1%O%s} \
 + %{msys-crt0=: %eYou need a C startup file for -msys-crt0=} \
 + %{msys-crt0=: %eYou need a C startup file for -msys-crt0=} \
 + %{mctors-in-init: crti%O%s crtbegin%O%s} \
 + %{mctors-in-init: crti%O%s crtbegin%O%s} \
 +"
 +"

+ 1 - 1
toolchain/gcc/3.4.3/900-nios2.patch

@@ -6989,7 +6989,7 @@
 +
 +
 +#undef STARTFILE_SPEC 
 +#undef STARTFILE_SPEC 
 +#define STARTFILE_SPEC  \
 +#define STARTFILE_SPEC  \
-+"%{msys-crt0=*: %*} %{!msys-crt0=*: crt0%O%s} \
++"%{msys-crt0=*: %*} %{!msys-crt0=*: crt1%O%s} \
 + %{msys-crt0=: %eYou need a C startup file for -msys-crt0=} \
 + %{msys-crt0=: %eYou need a C startup file for -msys-crt0=} \
 + %{mctors-in-init: crti%O%s crtbegin%O%s} \
 + %{mctors-in-init: crti%O%s crtbegin%O%s} \
 +"
 +"