All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: Fix zImage file size not aligned with CONFIG_EFI_STUB enabled
@ 2017-10-18  5:01 ` Jeffy Chen
  0 siblings, 0 replies; 42+ messages in thread
From: Jeffy Chen @ 2017-10-18  5:01 UTC (permalink / raw)
  To: linux-arm-kernel

The zImage file size should be aligned.

Fixes: e4bae4d0b5f3 ("arm/efi: Split zImage code and data into separate PE/COFF sections")
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---

 arch/arm/boot/compressed/vmlinux.lds.S | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/compressed/vmlinux.lds.S b/arch/arm/boot/compressed/vmlinux.lds.S
index b38dcef90756..1636fa259577 100644
--- a/arch/arm/boot/compressed/vmlinux.lds.S
+++ b/arch/arm/boot/compressed/vmlinux.lds.S
@@ -70,10 +70,6 @@ SECTIONS
   .got			: { *(.got) }
   _got_end = .;
 
-  /* ensure the zImage file size is always a multiple of 64 bits */
-  /* (without a dummy byte, ld just ignores the empty section) */
-  .pad			: { BYTE(0); . = ALIGN(8); }
-
 #ifdef CONFIG_EFI_STUB
   .data : ALIGN(4096) {
     __pecoff_data_start = .;
@@ -93,6 +89,10 @@ SECTIONS
   __pecoff_data_rawsize = . - ADDR(.data);
 #endif
 
+  /* ensure the zImage file size is always a multiple of 64 bits */
+  /* (without a dummy byte, ld just ignores the empty section) */
+  .pad			: { BYTE(0); . = ALIGN(8); }
+
   _edata = .;
 
   _magic_sig = ZIMAGE_MAGIC(0x016f2818);
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2017-10-24 10:03 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-18  5:01 [PATCH] ARM: Fix zImage file size not aligned with CONFIG_EFI_STUB enabled Jeffy Chen
2017-10-18  5:01 ` Jeffy Chen
2017-10-18  6:19 ` Chris Zhong
2017-10-18  6:19   ` Chris Zhong
2017-10-22 11:01 ` Ard Biesheuvel
2017-10-22 11:01   ` Ard Biesheuvel
2017-10-22 12:47   ` Russell King - ARM Linux
2017-10-22 12:47     ` Russell King - ARM Linux
2017-10-22 13:01     ` Ard Biesheuvel
2017-10-22 13:01       ` Ard Biesheuvel
2017-10-23  3:26       ` jeffy
2017-10-23  3:26         ` jeffy
2017-10-23  8:50         ` Russell King - ARM Linux
2017-10-23  8:50           ` Russell King - ARM Linux
2017-10-23 10:24           ` jeffy
2017-10-23 10:24             ` jeffy
2017-10-23 10:50             ` Russell King - ARM Linux
2017-10-23 10:50               ` Russell King - ARM Linux
2017-10-23 11:45               ` Russell King - ARM Linux
2017-10-23 11:45                 ` Russell King - ARM Linux
2017-10-24  8:09                 ` Ard Biesheuvel
2017-10-24  8:09                   ` Ard Biesheuvel
2017-10-24  9:09                   ` Russell King - ARM Linux
2017-10-24  9:09                     ` Russell King - ARM Linux
2017-10-24  9:13                     ` Ard Biesheuvel
2017-10-24  9:13                       ` Ard Biesheuvel
2017-10-24  9:22                       ` Russell King - ARM Linux
2017-10-24  9:22                         ` Russell King - ARM Linux
2017-10-24  9:26                         ` Ard Biesheuvel
2017-10-24  9:26                           ` Ard Biesheuvel
2017-10-24  9:30                           ` Ard Biesheuvel
2017-10-24  9:30                             ` Ard Biesheuvel
2017-10-24  9:38                             ` Russell King - ARM Linux
2017-10-24  9:38                               ` Russell King - ARM Linux
2017-10-24  9:44                               ` Ard Biesheuvel
2017-10-24  9:44                                 ` Ard Biesheuvel
2017-10-24  9:54                                 ` Russell King - ARM Linux
2017-10-24  9:54                                   ` Russell King - ARM Linux
2017-10-24 10:03                                   ` Ard Biesheuvel
2017-10-24 10:03                                     ` Ard Biesheuvel
2017-10-24  9:16                   ` jeffy
2017-10-24  9:16                     ` jeffy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.