Subject: [PATCH 01/11] dtc: fix asm for version 17

From: Milton Miller <[email-masked]>
Date: Sat, 7 Jul 2007 01:18:47 -0500 (CDT)

The version 17 flat device tree format added struct size.  When
writing versin 17 assembly output the field must be emitted.

Signed-off-by: Milton Miller <[email-masked]>
--- 
Found when trying to parse the binary from the assembled output.

Index: dtc/flattree.c
===================================================================
--- dtc.orig/flattree.c	2007-06-14 22:56:59.000000000 -0500
+++ dtc/flattree.c	2007-06-14 22:59:00.000000000 -0500
@@ -477,6 +477,10 @@ void dt_to_asm(FILE *f, struct boot_info
 		fprintf(f, "\t.long\t_%s_strings_end - _%s_strings_start\t/* size_dt_strings */\n",
 			symprefix, symprefix);
 
+	if (vi->flags & FTF_STRUCTSIZE)
+		fprintf(f, "\t.long\t_%s_struct_end - _%s_struct_start\t/* size_dt_struct */\n",
+			symprefix, symprefix);
+
 	/*
 	 * Reserve map entries.
 	 * Align the reserve map to a doubleword boundary.