diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-05-03 03:39:47 -0400 | 
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-05-03 03:39:47 -0400 | 
| commit | 2d59766eb330b9d15a9bcbcd7e1695809fc099c5 (patch) | |
| tree | b5abb4d0c0c488cbb44c2c0a54d59b44fe1fc462 /kernel/arch/x86/linker.ld | |
| parent | 2461cd921d45e3d75245568bc59831c1f0a43331 (diff) | |
renamed i386 to x86
Diffstat (limited to 'kernel/arch/x86/linker.ld')
| -rw-r--r-- | kernel/arch/x86/linker.ld | 38 | 
1 files changed, 38 insertions, 0 deletions
| diff --git a/kernel/arch/x86/linker.ld b/kernel/arch/x86/linker.ld new file mode 100644 index 0000000..c4bfa3b --- /dev/null +++ b/kernel/arch/x86/linker.ld @@ -0,0 +1,38 @@ +/* Excecution start point symbol */
 +ENTRY(_start)
 +
 +SECTIONS
 +{
 +    . = 1M;
 +
 +    /* Used to get the beginning and end address of the kernel */
 +    _kernel_begin = .;
 +
 +    /* code. multiboot header comes first */
 +    .text BLOCK(4K) : ALIGN(4K)
 +    {
 +        *(.multiboot)
 +        *(.text)
 +    }
 +
 +    /* read only data */
 +    .rodata BLOCK(4K) : ALIGN(4K)
 +    {
 +        *(.rodata)
 +    }
 +
 +    /* read write data (initialized) */
 +    .data BLOCK(4K) : ALIGN(4K)
 +    {
 +        *(.data)
 +    }
 +
 +    /* read write data (uninitialized) and stack */
 +    .bss BLOCK(4K) : ALIGN(4K)
 +    {
 +        *(COMMON)
 +        *(.bss)
 +    }
 +
 +    _kernel_end = .;
 +}
\ No newline at end of file | 
