bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/19317] plugin needed to handle lto object should not be output f


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/19317] plugin needed to handle lto object should not be output for plugin generated files when doing incremental link
Date: Tue, 14 Jan 2025 22:09:39 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19317

--- Comment #10 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e76d66a53ee9ef0a70fdb44a3150518fcc8086ea

commit e76d66a53ee9ef0a70fdb44a3150518fcc8086ea
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jan 14 21:21:02 2025 +0800

    ld: Parse linker script only once

    Parsing linker script twice caused

    FAIL: ld-plugin/lto-3r
    FAIL: ld-plugin/lto-5r
    FAIL: PR ld/19317 (2)

    for x86_64-w64-mingw32 with the linker error:

    ./ld-new:built in linker script:27 assignment to location counter invalid
outside of SECTIONS

    ldscripts/i386pep.xr has

     24   .rdata  :
     25   {
     26     *(.rdata)
     27     . = ALIGN(4);
     28     /* .ctors & .dtors */
     29     /* .CRT */
     30     /* ___crt_xl_end__ is defined in the TLS Directory support code */
     31   }

    Remove ld_parse_linker_script to parse linker script only once.

            * ldlang.c (cmdline_emit_object_only_section): Don't call
            ld_parse_linker_script.
            * ldmain.c (main): Fold ld_parse_linker_script.
            (ld_parse_linker_script): Removed.

    Signed-off-by: H.J. Lu <hjl.tools@gmail.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]