]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR 33385 vms archives
authorAlan Modra <amodra@gmail.com>
Sun, 7 Sep 2025 22:33:14 +0000 (08:03 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 8 Sep 2025 12:47:46 +0000 (22:17 +0930)
commita2298f23f2e23ff6f191e36540208a90fffd317b
treecada468970e5283a98912d4ecfce93f45133808a
parent1595b0fbd42f152ca3096eacea4852a05b073fad
PR 33385 vms archives

Commit 5c4ce239a3ab "Tidy bfdio to consistenly use containing archive"
broke vms archive handling, which has some horrible hacks involving
use of a special iovec for archive elements.  Modify the generic
archive handling code to not use the archive iovec when it differs
from the element iovec.

Also, various commits involving seek optimisation broke the vms
archive handling, which needs to see a rewind on an archive element.

* bfdio.c (bfd_read, bfd_write, bfd_tell, bfd_flush),
(bfd_stat, bfd_seek, bfd_mmap): Do not use the archive
bfd for IO when the archive and element iovec differ.
* plugin.c (bfd_plugin_open_input),
(bfd_plugin_close_file_descriptor): Likewise.
* vms-lib.c (vms_lib_bopen): Force bfd_seek to call iovec seek.
bfd/bfdio.c
bfd/plugin.c
bfd/vms-lib.c