[POWERPC] Make sure initrd and dtb sections get into zImage correctly
The "wrapper" script was using the wrong names for the initrd and dtb (device-tree blob) sections. This fixes it, and also ensures the symbols for the start and end of the dtb get defined correctly. Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
@@ -179,11 +179,11 @@ if [ -z "$cacheit" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$initrd" ]; then
|
if [ -n "$initrd" ]; then
|
||||||
addsec $tmp "$initrd" initrd
|
addsec $tmp "$initrd" $isection
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$dtb" ]; then
|
if [ -n "$dtb" ]; then
|
||||||
addsec $tmp "$dtb" dtb
|
addsec $tmp "$dtb" .kernel:dtb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$platform" != "miboot" ]; then
|
if [ "$platform" != "miboot" ]; then
|
||||||
|
@@ -21,6 +21,11 @@ SECTIONS
|
|||||||
__got2_end = .;
|
__got2_end = .;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
. = ALIGN(8);
|
||||||
|
_dtb_start = .;
|
||||||
|
.kernel:dtb : { *(.kernel:dtb) }
|
||||||
|
_dtb_end = .;
|
||||||
|
|
||||||
. = ALIGN(4096);
|
. = ALIGN(4096);
|
||||||
_vmlinux_start = .;
|
_vmlinux_start = .;
|
||||||
.kernel:vmlinux.strip : { *(.kernel:vmlinux.strip) }
|
.kernel:vmlinux.strip : { *(.kernel:vmlinux.strip) }
|
||||||
|
Reference in New Issue
Block a user