2012-02-02 Tristan Gingold <gingold@adacore.com>

* archive.c (bfd_slurp_armap): Fix thinko in cast.
This commit is contained in:
Tristan Gingold 2012-02-02 11:35:31 +00:00
parent f6616a063c
commit cd99171ce1
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-02-02 Tristan Gingold <gingold@adacore.com>
* archive.c (bfd_slurp_armap): Fix thinko in cast.
2012-01-31 H.J. Lu <hongjiu.lu@intel.com> 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13616 PR ld/13616

View file

@ -1103,7 +1103,7 @@ bfd_slurp_armap (bfd *abfd)
/* Read the extended name. We know its length. */ /* Read the extended name. We know its length. */
if (bfd_bread (extname, 20, abfd) != 20) if (bfd_bread (extname, 20, abfd) != 20)
return FALSE; return FALSE;
if (bfd_seek (abfd, (file_ptr) -(sizeof (hdr) + 20), SEEK_CUR) != 0) if (bfd_seek (abfd, -(file_ptr) (sizeof (hdr) + 20), SEEK_CUR) != 0)
return FALSE; return FALSE;
if (CONST_STRNEQ (extname, "__.SYMDEF SORTED") if (CONST_STRNEQ (extname, "__.SYMDEF SORTED")
|| CONST_STRNEQ (extname, "__.SYMDEF")) || CONST_STRNEQ (extname, "__.SYMDEF"))