use the -newos toolchain even if -elf is present.
[newos.git] / boot / arm / stage1.ld
blob6d76faccb6b4c90a840ca7efa48c6dd27cd6ca50
1 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
2 OUTPUT_ARCH(arm)
4 ENTRY(_start)
5 SECTIONS
7         . = 0x20001000 + SIZEOF_HEADERS;
9         /* text/read-only data */
10         .text : { *(.text .gnu.linkonce.t.*) }
12         __ctor_list = .;
13         .ctors : { *(.ctors) }
14         __ctor_end = .;
16         .rodata : { *(.rodata) }
18         /* writable data  */
19         . = ALIGN(0x1000);
20         __data_start = .;
21         .data : { *(.data .gnu.linkonce.d.*) }
23         /* unintialized data (in same segment as writable data) */
24         __bss_start = .;
25         .data : { *(.bss) }
26         _end = . ;
28         /* Strip unnecessary stuff */
29         /DISCARD/ : { *(.comment .note .eh_frame .dtors) }