diff options
-rw-r--r-- | arch/x86/boot/compressed/relocs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/boot/compressed/relocs.c b/arch/x86/boot/compressed/relocs.c index 89bbf4e4d05d..d3c0b0277666 100644 --- a/arch/x86/boot/compressed/relocs.c +++ b/arch/x86/boot/compressed/relocs.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #define USE_BSD | 10 | #define USE_BSD |
11 | #include <endian.h> | 11 | #include <endian.h> |
12 | #include <regex.h> | 12 | #include <regex.h> |
13 | #include <tools/le_byteshift.h> | ||
13 | 14 | ||
14 | static void die(char *fmt, ...); | 15 | static void die(char *fmt, ...); |
15 | 16 | ||
@@ -605,10 +606,7 @@ static void emit_relocs(int as_text) | |||
605 | fwrite("\0\0\0\0", 4, 1, stdout); | 606 | fwrite("\0\0\0\0", 4, 1, stdout); |
606 | /* Now print each relocation */ | 607 | /* Now print each relocation */ |
607 | for (i = 0; i < reloc_count; i++) { | 608 | for (i = 0; i < reloc_count; i++) { |
608 | buf[0] = (relocs[i] >> 0) & 0xff; | 609 | put_unaligned_le32(relocs[i], buf); |
609 | buf[1] = (relocs[i] >> 8) & 0xff; | ||
610 | buf[2] = (relocs[i] >> 16) & 0xff; | ||
611 | buf[3] = (relocs[i] >> 24) & 0xff; | ||
612 | fwrite(buf, 4, 1, stdout); | 610 | fwrite(buf, 4, 1, stdout); |
613 | } | 611 | } |
614 | } | 612 | } |