mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 17:26:41 +07:00
67a1b68263
To prove that the relocation works, move the crt0.o away from the beginning. Move linker options from command line into linker script. rename entry point because '_start' is referenced in printf output. Signed-off-by: Olaf Hering <olh@suse.de> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Anton Blanchard <anton@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
47 lines
676 B
Plaintext
47 lines
676 B
Plaintext
OUTPUT_ARCH(powerpc:common)
|
|
ENTRY(_zimage_start)
|
|
SECTIONS
|
|
{
|
|
. = (4*1024*1024);
|
|
_start = .;
|
|
.text :
|
|
{
|
|
*(.text)
|
|
*(.fixup)
|
|
}
|
|
_etext = .;
|
|
. = ALIGN(4096);
|
|
.data :
|
|
{
|
|
*(.rodata*)
|
|
*(.data*)
|
|
*(.sdata*)
|
|
__got2_start = .;
|
|
*(.got2)
|
|
__got2_end = .;
|
|
}
|
|
|
|
. = ALIGN(4096);
|
|
_vmlinux_start = .;
|
|
.kernel:vmlinux.strip : { *(.kernel:vmlinux.strip) }
|
|
_vmlinux_end = .;
|
|
|
|
. = ALIGN(4096);
|
|
_initrd_start = .;
|
|
.kernel:initrd : { *(.kernel:initrd) }
|
|
_initrd_end = .;
|
|
|
|
. = ALIGN(4096);
|
|
_edata = .;
|
|
|
|
. = ALIGN(4096);
|
|
__bss_start = .;
|
|
.bss :
|
|
{
|
|
*(.sbss)
|
|
*(.bss)
|
|
}
|
|
. = ALIGN(4096);
|
|
_end = . ;
|
|
}
|