[PATCH 0/8] PR ld/24600: Add general linker support for mapless archives

Maciej W. Rozycki macro@redhat.com
Mon Sep 29 16:19:52 GMT 2025


On Sat, 27 Sep 2025, Fangrui Song wrote:

> Regarding the option name, what do you think of
> --[no-]allow-unindexed-archives instead of --link-mapless?
> --link-mapless might be confusing since it looks similar to the "link
> map" (-M, --Map), even though the functionality (related to archive
> index or archive symbol table) is completely different.

 Thank you for the suggestion.  With my decades long *nix background I'm 
not very keen on exceedingly long option names to be honest.  I'd have to 
chew it over or I'll be happy to collect other people's opinions.

> I believe --allow-unindexed-archives will primarily be needed during
> the transition period as the ecosystem adopts symbol-table-less
> archives.

 I envisage no need for this option for the vast majority of users as it 
is on by default anyway.  I chose to include it primarily for the negated 
form, for people who might want to catch any archive carrying no symbol 
map by accident in their build system, as such archives necessarily have a 
link performance implication.  And once you have the negated form you need 
the straight one as well, for completeness.

  Maciej



More information about the Binutils mailing list