M7350/kernel/arch/powerpc/boot/zImage.lds.S

90 lines
1.2 KiB
ArmAsm
Raw Normal View History

2024-09-09 08:57:42 +00:00
#include <asm-generic/vmlinux.lds.h>
#ifdef CONFIG_PPC64_BOOT_WRAPPER
OUTPUT_ARCH(powerpc:common64)
#else
2024-09-09 08:52:07 +00:00
OUTPUT_ARCH(powerpc:common)
2024-09-09 08:57:42 +00:00
#endif
2024-09-09 08:52:07 +00:00
ENTRY(_zimage_start)
EXTERN(_zimage_start)
SECTIONS
{
.text :
{
_start = .;
*(.text)
*(.fixup)
_etext = .;
}
. = ALIGN(4096);
.data :
{
*(.rodata*)
*(.data*)
*(.sdata*)
2024-09-09 08:57:42 +00:00
#ifndef CONFIG_PPC64_BOOT_WRAPPER
2024-09-09 08:52:07 +00:00
*(.got2)
2024-09-09 08:57:42 +00:00
#endif
2024-09-09 08:52:07 +00:00
}
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.dynamic :
{
__dynamic_start = .;
*(.dynamic)
}
.hash : { *(.hash) }
.interp : { *(.interp) }
2024-09-09 08:57:42 +00:00
.rela.dyn :
{
#ifdef CONFIG_PPC64_BOOT_WRAPPER
__rela_dyn_start = .;
#endif
*(.rela*)
}
2024-09-09 08:52:07 +00:00
. = ALIGN(8);
.kernel:dtb :
{
_dtb_start = .;
*(.kernel:dtb)
_dtb_end = .;
}
. = ALIGN(4096);
.kernel:vmlinux.strip :
{
_vmlinux_start = .;
*(.kernel:vmlinux.strip)
_vmlinux_end = .;
}
. = ALIGN(4096);
.kernel:initrd :
{
_initrd_start = .;
*(.kernel:initrd)
_initrd_end = .;
}
2024-09-09 08:57:42 +00:00
#ifdef CONFIG_PPC64_BOOT_WRAPPER
.got :
{
__toc_start = .;
*(.got)
*(.toc)
}
#endif
2024-09-09 08:52:07 +00:00
. = ALIGN(4096);
.bss :
{
_edata = .;
__bss_start = .;
*(.sbss)
*(.bss)
*(COMMON)
_end = . ;
}
}