]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Don't choose plugin target in binutils/
authorAlan Modra <amodra@gmail.com>
Mon, 18 Aug 2025 09:03:54 +0000 (18:33 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 18 Aug 2025 13:35:43 +0000 (23:05 +0930)
commit5e83077d552ed6f81dbc092eb3ccf827a43de42c
tree65de9a494b22f65c59f1198ebafd44b788c61585
parentc3eb17bae4de9b9f836c33c64988638d3da8d935
Don't choose plugin target in binutils/

Instead make bfd_check_format try the plugin target first when the
user hasn't supplied a target.

bfd/
* format.c (bfd_check_format_matches): Try for a plugin target
match first.
* targets.c (bfd_find_target): Don't specially treat "plugin".
binutils/
* ar.c (plugin_target): Delete.
(open_inarch): Don't set target of archive elements.
(replace_members): Use target rather than plugin_target when
opening replacement or additional files.
* arsup.c (plugin_target): Delete.  Replace all uses with NULL.
(ar_open): Don't set element target.
* bucomm.h (set_plugin_target): Delete.
* nm.c (plugin_target): Delete.
(display_archive): Don't set element target.
(display_file): Alway use target when opening file.
* objcopy.c (copy_archive): Don't use plugin target for output
elements.
* NEWS: Mention stricter target checking.
bfd/format.c
bfd/targets.c
binutils/NEWS
binutils/ar.c
binutils/arsup.c
binutils/bucomm.h
binutils/nm.c
binutils/objcopy.c