From 3edcbc98652d7f5363ea4f7a0495f1ea3ce24b47 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Tue, 27 Oct 2015 11:53:58 -0500 Subject: move securty code to correct position in output --- src/saturn-mkboot.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/saturn-mkboot.c b/src/saturn-mkboot.c index 7551059..2ddd0ed 100644 --- a/src/saturn-mkboot.c +++ b/src/saturn-mkboot.c @@ -245,15 +245,16 @@ int main(int argc, char **argv) if (process_args(argc, argv)) return 1; + ipsize = load_security_code(ipout); + if (ipsize == -1) goto fail; + ipout += ipsize; + for (int i = 0; i < 8; i++) { serialize_region_code(ipout, find_symbol(regiondefs, sysid.regions[i])); ipout += 32; sysid.bootsize += 32; } - ipsize = load_security_code(ipout); - if (ipsize == -1) goto fail; - ipout += ipsize; ipsize = load_ip(ipout, sizeof ipbuf - (ipout - ipbuf)); if (ipsize == -1) goto fail; sysid.bootsize += ipsize; -- cgit v1.2.3