aboutsummaryrefslogtreecommitdiff
path: root/bfd/vms-lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/vms-lib.c')
-rw-r--r--bfd/vms-lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c
index 659832c..1206d7e 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -1304,6 +1304,10 @@ vms_lib_bopen (bfd *el, file_ptr filepos)
el->iostream = vec;
el->iovec = &vms_lib_iovec;
+ /* Force the next rewind to call vms_lib_bseek even though it will
+ appear to bfd_seek that the file position is already at 0. */
+ el->last_io = bfd_io_force;
+
/* File length is not known. */
vec->file_len = -1;