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

--- Comment #7 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Maciej W. Rozycki <[email protected]>:

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

commit 8141e0f796be6fdb93d0f04b71a7cb72486d0406
Author: Maciej W. Rozycki <[email protected]>
Date:   Fri Feb 20 17:29:51 2026 +0000

    PR ld/24600: BFD: Add general linker support for fake archives

    Add support to BFD for file collections pretending to be archives, with
    the usual linker symbol resolution semantics as with actual archives.
    This is an underlying feature to implement `--start-lib'/`--end-lib'
    group support of the GOLD linker being phased out.

    It comes in the form of `bfd_openr_fake_archive' function which arranges
    for a list of input files supplied to be treated as an archive, with
    `bfd_openr_next_archived_file' then referring to successive elements of
    the list previously supplied.

    Use the BFD pointer member of the first file and proxy handle members of
    `struct bfd' and `struct artdata' respectively to hold references to the
    members of such an artificial archive once arranged.  Such an archive
    has to be a mapless one necessarily and any use will require a symbol
    index to be produced on the fly.

    Add assertions throughout backend code that is supposed not to be ever
    reached in the handling of such archives and which continues to use the
    first file and proxy handle members of `struct bfd' and `struct artdata'
    solely to keep offsets into the owning archive file.

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

Reply via email to