[Bug bootstrap/124547] [16 Regression] JIT fails to use linker version script since r16-7269

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 23 11:10:57 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124547

--- Comment #19 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:74f2bb6be7564077a8b0862b5f3268d7ac583f56

commit r16-8254-g74f2bb6be7564077a8b0862b5f3268d7ac583f56
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Mon Mar 23 12:10:02 2026 +0100

    configure: Further {gas,gnu_ld}{,_flag} fixes [PR124547]

    Andreas mentioned in the PR that {gas,gnu_ld}_flag vars should be only
    ever used in configure.ac before . config.gcc and I agree with that.
    config.gcc initializes the {gas,gnu_ld} vars to {gas,gnu_ld}_flag, then
    for some triplets has gas=yes and/or gnu_ld=yes and in some rare cases
    (for targets which basically require people to use
--with{,out}-gnu-{as,ld})
    x$gas = xyes/x$gnu_ld = xyes/x$gas != xyes/x$gnu_ld != xyes tests.

    So, the following patch uses just what comes up from config.gcc from that
    point onward (so, the user requested setting (which can be now empty if
    unknown) possibly overridden by triplet).  With the exception of solaris
    (which does what it did before PR124547, i.e. always probe linker and
    assembler) and the fallback case of checking gas/ld version if still unset
    (but that in this patch only affects targets which don't override it
    by triplet, i.e. targets which typically have a choice between GNU binutils
    and some proprietary ones).

    2026-03-23  Jakub Jelinek  <jakub@redhat.com>

            PR bootstrap/124547
            * configure.ac: After config.gcc inclusion use or set only gas
instead
            of gas_flag and gnu_ld instead of gnu_ld_flag.
            * config.gcc: Document possibility of gas_flag or gnu_ld_flag being
            empty.
            * acinclude.m4 (gcc_GAS_FLAGS): Use gas instead of gas_flag.
            (gcc_AC_INITFINI_ARRAY): Likewise.  Use gnu_ld instead of
gnu_ld_flag.
            * configure: Regenerate.


More information about the Gcc-bugs mailing list