[PATCH v4 00/14] PR ld/24600: Add general linker support for mapless archives
Maciej W. Rozycki
macro@orcam.me.uk
Tue Jan 13 01:44:02 GMT 2026
Hi,
This is v4 of a patch series to add linker support for mapless archives
and `--start-lib'/`--end-lib' command line options, addressing feedback
received for v3.
Here's an overview of the updated set yet outstanding:
1. Remove null pointer checks for `bfd_hash_table_free' calls.
2. Remove extraneous BFD struct member setup from `bfd_make_readable'.
3. Unset the format on releasing a BFD's objalloc memory.
4. Sanitize back end flavour for external symbols retrieval with aout
BFDs.
5. Correct archive format determination for non-default link emulations.
6. Make the file position consistently unsigned in symbol maps.
7. Add a BFD pointer member to `struct carsym' (symbol map).
8. Expand support for mapless archives across all the BFD linkers (beyond
just XCOFF).
9. Add `--link-mapless'/`--no-link-mapless' LD options to control the new
feature, on by default (and now switchable off for XCOFF too, but not
effective for Alpha/VMS whose archive format does not support omitting
an index).
10. Guard NULL pointer use with assertions in LD where adding a new input
file.
11. Factor out input file insertion in LD.
12. Add a BFD pointer member to structures referring to archive members.
13. Add fake archive support to BFD as a list of member BFDs supplied.
14. Add `--start-lib'/`--end-lib' LD options and a corresponding linker
script feature building upon the fake archive BFD feature.
See individual change descriptions for details.
This has been verified across 250 targets, causing no regressions and
adding no failures in new tests.
OK to apply?
Previous iterations:
- v3 at: <https://inbox.sourceware.org/binutils/alpine.DEB.2.21.2511191836470.57987@angie.orcam.me.uk/>.
- v2 at: <https://inbox.sourceware.org/binutils/alpine.DEB.2.21.2511050716450.25436@angie.orcam.me.uk/>.
- v1 at: <https://inbox.sourceware.org/binutils/alpine.DEB.2.21.2509251408330.15999@angie.orcam.me.uk/>.
Maciej
More information about the Binutils
mailing list