Michael Ellerman 97ee351b50 powerpc/boot: Fix zImage TOC alignment
Recent toolchains force the TOC to be 256 byte aligned. We need to
enforce this alignment in the zImage linker script, otherwise pointers
to our TOC variables (__toc_start) could be incorrect. If the actual
start of the TOC and __toc_start don't have the same value we crash
early in the zImage wrapper.

Cc: stable@vger.kernel.org
Suggested-by: Alan Modra <amodra@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-03-08 10:39:32 +11:00
..
2017-03-01 10:10:16 -08:00
2017-02-02 16:35:26 +11:00
2010-05-12 07:48:49 -04:00
2007-09-19 21:13:16 -05:00
2008-04-17 01:01:40 -05:00
2014-05-01 08:26:26 +10:00
2016-09-28 14:20:44 +10:00
2009-12-12 22:24:26 -07:00
2014-08-05 15:41:03 +10:00
2015-04-29 17:17:17 -05:00
2016-12-16 09:26:42 -08:00
2015-04-29 17:17:17 -05:00
2014-08-26 09:35:57 +02:00
2007-09-14 01:33:23 +10:00
2007-09-14 01:33:23 +10:00
2009-12-12 22:24:29 -07:00

To extract the kernel vmlinux, System.map, .config or initrd from the zImage binary:

objcopy -j .kernel:vmlinux -O binary zImage vmlinux.gz
objcopy -j .kernel:System.map -O binary zImage System.map.gz
objcopy -j .kernel:.config -O binary zImage config.gz
objcopy -j .kernel:initrd -O binary zImage.initrd initrd.gz


	Peter