linux/arch/mips
Paul Cercueil 3f6c515d72 MIPS: vmlinux.lds.S: Fix appended dtb not properly aligned
Commit 6654111c89 ("MIPS: vmlinux.lds.S: align raw appended dtb to 8
bytes") changed the alignment from STRUCT_ALIGNMENT bytes to 8 bytes.

The commit's message makes it sound like it was actually done on
purpose, but this is not the case. The commit was written when raw
appended dtb were not aligned at all. The STRUCT_ALIGN() was added a few
days before, in commit 7a05293af3 ("MIPS: boot/compressed: Copy DTB to
aligned address"). The true purpose of the commit was not to align
specifically to 8 bytes, but to make sure that the generated vmlinux'
size was properly padded to the alignment required for DTBs.

While the switch to 8-byte alignment worked for vmlinux-appended dtb
blobs, it broke vmlinuz-appended dtb blobs, as the decompress routine
moves the blob to a STRUCT_ALIGNMENT aligned address.

Fix this by changing the raw appended dtb blob alignment from 8 bytes
back to STRUCT_ALIGNMENT bytes in vmlinux.lds.S.

Fixes: 6654111c89 ("MIPS: vmlinux.lds.S: align raw appended dtb to 8 bytes")
Cc: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2021-03-16 22:53:08 +01:00
..
alchemy driver core: lift dma_default_coherent into common code 2021-02-13 09:51:45 +01:00
ar7
ath25
ath79 MIPS: of: Introduce helper function to get DTB 2021-02-04 13:34:51 +01:00
bcm47xx
bcm63xx
bmips mips: bmips: init clocks earlier 2021-02-23 13:23:35 +01:00
boot MIPS: boot/compressed: Copy DTB to aligned address 2021-03-08 11:49:47 +01:00
cavium-octeon - added support for Nintendo N64 2021-02-21 13:18:26 -08:00
cobalt
configs Modules updates for v5.12 2021-02-23 10:15:33 -08:00
crypto crypto: mips/poly1305 - enable for all MIPS processors 2021-03-08 11:52:17 +01:00
dec
fw
generic MIPS: of: Introduce helper function to get DTB 2021-02-04 13:34:51 +01:00
include MIPS: kernel: Reserve exception base early to prevent corruption 2021-03-09 11:22:59 +01:00
ingenic
jazz
kernel MIPS: vmlinux.lds.S: Fix appended dtb not properly aligned 2021-03-16 22:53:08 +01:00
kvm KVM: MIPS: remove unneeded semicolon 2021-02-03 11:33:16 +01:00
lantiq MIPS: of: Introduce helper function to get DTB 2021-02-04 13:34:51 +01:00
lib arch: mips: update references to current linux-mips list 2021-02-23 13:24:38 +01:00
loongson2ef - added support for Nintendo N64 2021-02-21 13:18:26 -08:00
loongson32
loongson64 Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
math-emu
mm MIPS: make userspace mapping young by default 2021-02-26 09:41:05 -08:00
mti-malta driver core: lift dma_default_coherent into common code 2021-02-13 09:51:45 +01:00
n64
net
netlogic
pci driver core: lift dma_default_coherent into common code 2021-02-13 09:51:45 +01:00
pic32 MIPS: of: Introduce helper function to get DTB 2021-02-04 13:34:51 +01:00
pistachio driver core: lift dma_default_coherent into common code 2021-02-13 09:51:45 +01:00
power
ralink MIPS: ralink: manage low reset lines 2021-02-04 13:35:01 +01:00
rb532
sgi-ip22
sgi-ip27
sgi-ip30
sgi-ip32 arch: mips: update references to current linux-mips list 2021-02-23 13:24:38 +01:00
sibyte
sni
tools
txx9
vdso Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
vr41xx
Kbuild
Kbuild.platforms
Kconfig - added support for Nintendo N64 2021-02-21 13:18:26 -08:00
Kconfig.debug
Makefile - added support for Nintendo N64 2021-02-21 13:18:26 -08:00
Makefile.postlink