]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Unbreak bootloader due to gcc-7 optimizations
authorHelge Deller <deller@gmx.de>
Fri, 22 Sep 2017 19:57:11 +0000 (21:57 +0200)
committerHelge Deller <deller@gmx.de>
Fri, 22 Sep 2017 20:26:43 +0000 (22:26 +0200)
commit6c0e571847462bcd433d4e78ba603f0fed9c2a9d
tree1f3b063ef0f04076f848a0bafb90742a2a630ad4
parent6532fb528b582d205da3e4cf83ed8dc26b7a27dd
parisc: Unbreak bootloader due to gcc-7 optimizations

gcc-7 optimizes the byte-wise accesses of get_unaligned_le32() into
word-wise accesses if the 32-bit integer output_len is declared as
external. This panics then the bootloader since we don't have the
unaligned access fault trap handler installed during boot time.

Avoid this optimization by declaring output_len as byte-aligned and thus
unbreak the bootloader code.

Additionally, compile the boot code optimized for size.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/boot/compressed/Makefile
arch/parisc/boot/compressed/misc.c