PATCH: PR bootstrap/35752: Combined gcc + binutils source tree doesn't bootstrap
H.J. Lu
hjl.tools@gmail.com
Sat Mar 29 16:20:00 GMT 2008
This patch bootstrapped the combined gcc + binutils source tree on
Linux/Intel64.
H.J.
On Fri, Mar 28, 2008 at 4:14 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> When I tried to bootstrap a combined gcc + binutils source tree on
> Linux/ia32 and Linux/Intel64 with shared library enabled, it went
> to an infinite loop when as or ld from stage 2 was used. The problem
> is ld-new tries to use itself to relink itself when it is invoked
> first time. This patch modifies exec-tool.in to avoid use the newly
> built linker in linker directory. I am testing it on Linux/Intel64
> now.
>
>
> H.J.
> ----
> 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
>
> PR bootstrap/35752
> * exec-tool.in: Don't use newly built linker in linker
> directory.
>
> --- gcc/exec-tool.in.relink 2008-02-25 09:10:12.000000000 -0800
> +++ gcc/exec-tool.in 2008-03-28 16:10:47.000000000 -0700
> @@ -49,6 +49,15 @@ case "$original" in
> tdir=`dirname "$0"`
> scriptdir=`cd "$tdir" && pwd`
>
> + # Don't use the newly built linker in linker directory.
> + if test $prog = ld-new$exeext; then
> + PWD=`pwd`
> + if test x`basename $PWD` = xld \
> + && test -x $scriptdir/../prev-$dir/$prog; then
> + exec $scriptdir/../prev-$dir/$prog ${1+"$@"}
> + fi
> + fi
> +
> if test -x $scriptdir/../$dir/$prog; then
> exec $scriptdir/../$dir/$prog ${1+"$@"}
> else
>
More information about the Gcc-patches
mailing list