Semihosting: Fix file mode to load binaries on Windows
Trusted firmware binaries loaded via semihosting used to be
opened using 'r' mode (i.e. read mode).  This is fine on POSIX
conforming systems (including Linux) but for Windows it also means
that the file should be opened in text mode. 'rb' mode must be
specified instead for binary mode.  On POSIX conforming systems,
'rb' mode is equivalent to 'r' mode so it does no harm.

Fixes ARM-software/tf-issues#69

Change-Id: Ifa53f2ecfd765f572dea5dd73191f9fe2b2c2011
1 parent 6ba0b6d commit 886278e55f3a7e5ab1ba8e12974cf824778c5995
@Sandrine Bailleux Sandrine Bailleux authored on 20 Mar 2014
Dan Handley committed on 21 Mar 2014
Showing 1 changed file
View
plat/fvp/plat_io_storage.c