target: write gmon.out according to target endianness
commit5bc0dc0c9d3609d16dc27f6bd4b6fea9a4e29760
authorJose de Sousa <jose.t.de.sousa@gmail.com>
Wed, 11 Jun 2014 23:05:20 +0000 (12 00:05 +0100)
committerPaul Fertser <fercerpav@gmail.com>
Wed, 11 Feb 2015 15:27:18 +0000 (11 15:27 +0000)
tree750cc35684fcfa3f59969335c9d879b7fa3c5726
parentb01952d78cc82b192c66664b7c59df728c4f22fe
target: write gmon.out according to target endianness

After profiling gmon.out was being written in little endian format only
which would cause gprof to issue and error and exit on big endian targets.

Change-Id: I526a40adae0f9a439fc5b77cef30fda228198b48
Signed-off-by: Jose de Sousa <jose.t.de.sousa@gmail.com>
Reviewed-on: http://openocd.zylin.com/2168
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/target/target.c