This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Tidy up arm-elf header files
- To: Nick Clifton <nickc at cambridge dot redhat dot com>
- Subject: Re: Tidy up arm-elf header files
- From: Rod Stewart <stewart at lab43 dot org>
- Date: Fri, 7 Sep 2001 10:49:50 -0400 (EDT)
- cc: Richard Henderson <rth at redhat dot com>, <gcc-patches at gcc dot gnu dot org>
On 7 Sep 2001, Nick Clifton wrote:
> Hi Richard, Hi Rod,
>
> > > /usr/bin/ld: cannot open crt0.o: No such file or directory
> >
> > Ah, linux uses crt1.o. Nick, you've pruned too much.
>
> Oopsie! Actually it turns out that the real problem was that when I
> moved the header files into the tm_file variable, I put them in the
> wrong order, so elfos.h was being included *after* linux-elf.h and so
> overriding the definition of STARTFILE_SPEC.
>
> The revised patch below fixes this problem. Rod, Phil, can you have a
> go with this one and let me know if arm-linux bootstraps now work ?
Well, it made it further then your last patch, but died with:
stage1/xgcc -Bstage1/ -B/usr/local/armv4l-unknown-linux/bin/ -DIN_GCC
-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE
-o gengenrtl \
gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case ""
in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*)
echo ;; esac `
stage1/libgcc.a(__main.o): In function `__gccmain':
__main.o(.text+0x30): undefined reference to `__do_global_ctors'
-Rms