Skip to content

Commit 7f897ac

Browse files
RomainNaourtorvalds
authored andcommitted
include/asm-generic/vmlinux.lds.h: align ro_after_init
Since the patch [1], building the kernel using a toolchain built with binutils 2.33.1 prevents booting a sh4 system under Qemu. Apply the patch provided by Alan Modra [2] that fix alignment of rodata. [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ebd2263ba9a9124d93bbc0ece63d7e0fae89b40e [2] https://www.sourceware.org/ml/binutils/2019-12/msg00112.html Signed-off-by: Romain Naour <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Alan Modra <[email protected]> Cc: Bin Meng <[email protected]> Cc: Chen Zhou <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: John Paul Adrian Glaubitz <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Cc: Kuninori Morimoto <[email protected]> Cc: Rich Felker <[email protected]> Cc: Sam Ravnborg <[email protected]> Cc: Yoshinori Sato <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: <[email protected]> Link: https://marc.info/?l=linux-sh&m=158429470221261 Signed-off-by: Linus Torvalds <[email protected]>
1 parent c403f6a commit 7f897ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/asm-generic/vmlinux.lds.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@
394394
*/
395395
#ifndef RO_AFTER_INIT_DATA
396396
#define RO_AFTER_INIT_DATA \
397+
. = ALIGN(8); \
397398
__start_ro_after_init = .; \
398399
*(.data..ro_after_init) \
399400
JUMP_TABLE_DATA \

0 commit comments

Comments
 (0)