[PATCH v3 13/18] PR ld/24600: LD: Add options to control mapless archive acceptance
Jan Beulich
jbeulich@suse.com
Tue Dec 9 15:11:53 GMT 2025
More information about the Binutils mailing list
Tue Dec 9 15:11:53 GMT 2025
- Previous message (by thread): [PATCH v3 12/18] PR ld/24600: BFD: Add general linker support for mapless archives
- Next message (by thread): [PATCH v3 08/18] BFD: Add BFD pointer member to `struct carsym'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 20.11.2025 11:56, Maciej W. Rozycki wrote:
> @@ -798,7 +813,7 @@ const char *const bfd_errmsgs[] =
> N_("invalid operation"),
> N_("memory exhausted"),
> N_("no symbols"),
> - N_("archive has no index; run ranlib to add one"),
> + N_("archive has no index; run ranlib to add one or use --link-mapless"),
With --link-mapless being the default, would the suggestion better be to avoid
use of --no-link-mapless?
> @@ -2373,6 +2374,12 @@ library during a library search. This o
> Turn off the effect of the @option{--whole-archive} option for subsequent
> archive files.
>
> +@kindex --no-link-mapless
> +@item --no-link-mapless
> +Reject archives that lack an index aka symbol map for all the subsequent
> +archives referred on the command line. If such a file is encountered,
> +a link error occurs. This is the traditional behavior.
> +
> @cindex output file after errors
> @kindex --noinhibit-exec
> @item --noinhibit-exec
> @@ -3182,6 +3189,12 @@ Second, don't forget to use @option{-Wl,
> list of archives, because gcc will add its own list of archives to
> your link and you may not want this flag to affect those as well.
>
> +@kindex --link-mapless
> +@item --link-mapless
> +Accept archives that lack an index aka symbol map for all the subsequent
> +archives referred on the command line. If missing, such an index is made
> +internally on the fly at performance cost. This is the default.
Why does this appear so late in the table, among the options ...
> @kindex --wrap=@var{symbol}
> @item --wrap=@var{symbol}
> Use a wrapper function for @var{symbol}. Any undefined reference to
... starting with 'w' (and their negative forms)? Then again sorting looks to
have been broken badly enough that I can't even suggest a good alternative
place. Hence my request is only to keep positive and negative options together.
Jan
- Previous message (by thread): [PATCH v3 12/18] PR ld/24600: BFD: Add general linker support for mapless archives
- Next message (by thread): [PATCH v3 08/18] BFD: Add BFD pointer member to `struct carsym'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list