use the -newos toolchain even if -elf is present.
[newos.git] / boot / dreamcast / stage2.ld
blob7d217508c586c2b9200cfa7847e295ef1853f76d
1 OUTPUT_FORMAT("elf32-shl", "elf32-shl", "elf32-shl")
2 OUTPUT_ARCH(sh)
3  
4 ENTRY(__start)
5 SECTIONS
7         /* account for the 1 page of stage1 and 4 pages of bootdir before the binary */
8         . = 0x8c010000 + 0x5000 + SIZEOF_HEADERS;
10         /* text/read-only data */
11         .text : { *(.text .gnu.linkonce.t.*) }
13         .rodata : { *(.rodata .rodata.*) }
15         /* writable data  */
16 /*      . = ALIGN(0x1000);*/
17         __ctor_list = .;
18         .ctors : { *(.ctors) }
19         __ctor_end = .;
21         __data_start = .;
22         .data : { *(.data .gnu.linkonce.d.*) }
24         /* unintialized data (in same segment as writable data) */
25         __bss_start = .;
26         .bss : { *(.bss) }
28         . = ALIGN(0x1000);
29         _end = . ;
31         /* Strip unnecessary stuff */
32         /DISCARD/ : { *(.comment .note .eh_frame .dtors) }