Skip to content
Snippets Groups Projects
Select Git revision
  • 6dc573f7c41f0207df826b8958ecba1819a2bf57
  • main default protected
2 results

link.ld

Blame
  • link.ld 643 B
    ENTRY(loader) /* The name of the entry label */
    
    SECTIONS {
        . = 0x00100000; /* The code should be loaded at 1MB */
    
        .text ALIGN(0x1000): /* Align at 4KB */
        {
            *(.text) /* All text sections from all files */
        }
    
        .rodata ALIGN(0x1000): /* Align at 4KB */
        {
            *(.rodata*) /* All read-only data sections from all files */
        }
    
        .data ALIGN(0x1000): /* Align at 4KB */
        {
            *(.data) /* All data sections from all files */
        }
    
        .bss ALIGN(0x1000): /* Align at 4KB */
        {
            *(COMMON) /* All COMMON sections from all files */
            *(.bss) /* All bss sections from all files */
        }
    }