changeset 2448:a3ced1fc2e89

* support/file2c.tcl : align romdisk data to 4 bytes. With a bit of bad luck, it would not be long-word aligned.
author jlarmour
date Wed, 14 Nov 2007 14:08:06 +0000
parents b0a8521db07e
children 4631139fc774
files packages/fs/rom/current/ChangeLog packages/fs/rom/current/support/file2c.tcl
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/fs/rom/current/ChangeLog
+++ b/packages/fs/rom/current/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-13 Oyvind Harboe <oyvind.harboe@zylin.com>
+
+	* support/file2c.tcl : align romdisk data to 4 bytes. With a bit
+	of bad luck, it would not be long-word aligned.
+
 2006-08-04 Andrew Lunn <andrew.lunn@ascom.ch>
 	
 	* src/romfs.c (romfs_getinfo): Support for block usage call.
--- a/packages/fs/rom/current/support/file2c.tcl
+++ b/packages/fs/rom/current/support/file2c.tcl
@@ -88,7 +88,7 @@ if { $status != 0 } {
 }
 
 append result "/* This is a generated file. Do not edit. */\n\n"
-append result "static const unsigned char filedata\[\] = {\n"
+append result "static CYGBLD_ATTRIB_ALIGN(4) const unsigned char filedata\[\] = {\n"
 
 set datalength [ string length $data ]