diff --git a/bootstrap/src/i586.ld b/bootstrap/src/i586.ld new file mode 100644 index 0000000000..9bfb676b6b --- /dev/null +++ b/bootstrap/src/i586.ld @@ -0,0 +1,46 @@ +ENTRY(_start) +OUTPUT_FORMAT(elf32-i386) + +SECTIONS { + . = 4096 + 4096; /* Reserved for the null page and the initfs header prepended by redox-initfs-ar */ + __initfs_header = . - 4096; + . += SIZEOF_HEADERS; + . = ALIGN(4096); + + .text : { + __text_start = .; + *(.text*) + . = ALIGN(4096); + __text_end = .; + } + .rodata : { + __rodata_start = .; + *(.rodata*) + . = ALIGN(4096); + __rodata_end = .; + } + .data : { + __data_start = .; + *(.data*) + . = ALIGN(4096); + __data_end = .; + + *(.tbss*) + . = ALIGN(4096); + *(.tdata*) + . = ALIGN(4096); + + __bss_start = .; + *(.bss*) + . = ALIGN(4096); + __bss_end = .; + } + + /DISCARD/ : { + *(.comment*) + *(.eh_frame*) + *(.gcc_except_table*) + *(.note*) + *(.rel.eh_frame*) + } +}