mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-09 18:16:09 +03:00
6d2c298b66
As there is no need for a Prekernel on aarch64, the Prekernel code was moved into Kernel itself. The functionality remains the same. SERENITY_KERNEL_AND_INITRD in run.sh specifies a kernel and an inital ramdisk to be used by the emulator. This is needed because aarch64 does not need a Prekernel and the other ones do.
48 lines
710 B
Plaintext
48 lines
710 B
Plaintext
ENTRY(start)
|
|
|
|
PHDRS
|
|
{
|
|
boot_text PT_LOAD ;
|
|
text PT_LOAD ;
|
|
data PT_LOAD ;
|
|
bss PT_LOAD ;
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
. = 0x00100000;
|
|
|
|
start_of_prekernel_image = .;
|
|
|
|
.boot_text ALIGN(4K) : AT (ADDR(.boot_text))
|
|
{
|
|
KEEP(*(.multiboot))
|
|
} :boot_text
|
|
|
|
.text ALIGN(4K) : AT (ADDR(.text))
|
|
{
|
|
start_of_prekernel_text = .;
|
|
*(.text*)
|
|
} :text
|
|
|
|
.rodata ALIGN(4K) : AT (ADDR(.rodata))
|
|
{
|
|
*(.rodata*)
|
|
} :data
|
|
|
|
.data ALIGN(4K) : AT (ADDR(.data))
|
|
{
|
|
*(.data*)
|
|
} :data
|
|
|
|
.bss ALIGN(4K) (NOLOAD) : AT (ADDR(.bss))
|
|
{
|
|
*(COMMON)
|
|
*(.bss)
|
|
*(.stack)
|
|
*(.page_tables)
|
|
} :bss
|
|
|
|
end_of_prekernel_image = .;
|
|
}
|