]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/bfdio.c
Don't optimise bfd_seek to same position
[thirdparty/binutils-gdb.git] / bfd / bfdio.c
index 75a3309c582079c93c3ae040b728e6b950415ede..22c39a7b0ccfb0bd9ef29cea58ce1d699dec9d45 100644 (file)
@@ -456,10 +456,6 @@ bfd_seek (bfd *abfd, file_ptr position, int direction)
   if (direction != SEEK_CUR)
     position += offset;
 
-  if ((direction == SEEK_CUR && position == 0)
-      || (direction == SEEK_SET && (ufile_ptr) position == abfd->where))
-    return 0;
-
   result = abfd->iovec->bseek (abfd, position, direction);
   if (result != 0)
     {