Make this file compile with gcc4
[newos.git] / boot / dreamcast / stage2.ld
blobebe352c1a00571fe03d44682d1082d935e79c5c7
1 OUTPUT_FORMAT("elf32-shl", "elf32-shl", "elf32-shl")
2 OUTPUT_ARCH(sh)
3   PHDRS 
4   {
5         text PT_LOAD;
6         data PT_LOAD;
7   }
8   
9 ENTRY(__start)
10 SECTIONS
12 /*      . = 0x8c100000 + 0x1200 + SIZEOF_HEADERS; */
13         . = 0x8c000000 + 0x2000 + 0x80;
15         /* text/read-only data */
16         .text : { *(.text .gnu.linkonce.t.*) }
18         .rodata : { *(.rodata) }
20         /* writable data  */
21 /*      . = ALIGN(0x1000);*/
22         __ctor_list = .;
23         .ctors : { *(.ctors) }
24         __ctor_end = .;
26         __data_start = .;
27         .data : { *(.data .gnu.linkonce.d.*) }
29         /* unintialized data (in same segment as writable data) */
30         __bss_start = .;
31         .bss : { *(.bss) }
33         . = ALIGN(0x1000);
34         _end = . ;
36         /* Strip unnecessary stuff */
37         /DISCARD/ : { *(.comment .note .eh_frame .dtors) }