From 24fdacb1a83088b79a84876a0e656cc2c2f2f939 Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Tue, 28 Feb 2012 13:37:21 +0000 Subject: [PATCH] --- yaml --- r: 292737 b: refs/heads/master c: 55f9709cd07c9d33e30b575ee1b3bfd0aeaa3760 h: refs/heads/master i: 292735: 878d44e9de26729a827fdfe5e8b52c5bc80b9726 v: v3 --- [refs] | 2 +- trunk/arch/x86/boot/compressed/relocs.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 8646ebfb2f53..4a9aa5395a4d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a07f7672d7cf0ff0d6e548a9feb6e0bd016d9c6c +refs/heads/master: 55f9709cd07c9d33e30b575ee1b3bfd0aeaa3760 diff --git a/trunk/arch/x86/boot/compressed/relocs.c b/trunk/arch/x86/boot/compressed/relocs.c index 89bbf4e4d05d..d3c0b0277666 100644 --- a/trunk/arch/x86/boot/compressed/relocs.c +++ b/trunk/arch/x86/boot/compressed/relocs.c @@ -10,6 +10,7 @@ #define USE_BSD #include #include +#include static void die(char *fmt, ...); @@ -605,10 +606,7 @@ static void emit_relocs(int as_text) fwrite("\0\0\0\0", 4, 1, stdout); /* Now print each relocation */ for (i = 0; i < reloc_count; i++) { - buf[0] = (relocs[i] >> 0) & 0xff; - buf[1] = (relocs[i] >> 8) & 0xff; - buf[2] = (relocs[i] >> 16) & 0xff; - buf[3] = (relocs[i] >> 24) & 0xff; + put_unaligned_le32(relocs[i], buf); fwrite(buf, 4, 1, stdout); } }