[Bug bootstrap/124547] [16 Regression] JIT fails to use linker version script since r16-7269
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 17 10:42:45 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124547
--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #10)
> (In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #8)
> > > --- Comment #6 from Andreas Schwab <schwab@linux-m68k.org> ---
> > > After
> > >
> > > # Collect target-machine-specific information.
> > > . ${srcdir}/config.gcc || exit 1
> > >
> > > the ultimate wisdom for GNU ld should be $gnu_ld, not $gnu_ld_flag.
> >
> > I doubt that: what's the point of all the gas=yes/gnu_ld=yes guesswork
> > in config.gcc when the value can be actually determined?
> >
> > # gas Set to yes or no depending on whether the target
> > # system normally uses GNU as.
> >
> > # gnu_ld Set to yes or no depending on whether the target
> > # system normally uses GNU ld.
> >
> > Instead, we should assume gas/gld unless explicitly overridden or
> > determined as "no" in gcc/configure.ac.
And to amend the above - config.gcc should end with gas/gnu_ld that we
assume unless overridden by flags provided to configure. For the
solaris case that might mean they are empty, aka unknown, or we still
assume they are used and fixup during configure.
And we should document the assumption in install.texi (we largely do
implicitly by requiring GNU binutils).
More information about the Gcc-bugs
mailing list