]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/ecoff.c
Use bfd_get_filename throughout bfd
[thirdparty/binutils-gdb.git] / bfd / ecoff.c
index 82267a889df6ee880cbf0231e90609074abaeab3..1b0d4233e76be17583ddb8ba383c6406a6b86624 100644 (file)
@@ -3106,7 +3106,7 @@ _bfd_ecoff_write_armap (bfd *abfd,
      complain that the index is out of date.  Actually, the Ultrix
      linker just checks the archive name; the GNU linker may check the
      date.  */
-  stat (abfd->filename, &statbuf);
+  stat (bfd_get_filename (abfd), &statbuf);
   _bfd_ar_spacepad (hdr.ar_date, sizeof (hdr.ar_date), "%ld",
                    (long) (statbuf.st_mtime + 60));