1OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", "elf32-powerpc") 2OUTPUT_ARCH(powerpc) 3 4ENTRY(_start) 5SECTIONS 6{ 7 . = BOARD_LOADER_BASE; 8 9 /* text/read-only data */ 10 .text : { *(.text .text.* .gnu.linkonce.t.*) } 11 12 . = ALIGN(0x4); 13 __ctor_list = .; 14 .ctors : { *(.ctors) *(.init_array) } 15 __ctor_end = .; 16 17 .rodata : { *(.rodata .rodata.*) } 18 .sdata2 : { *(.sdata2) } 19 20 /* writable data */ 21 . = ALIGN(0x1000); 22 __data_start = .; 23 .data : { *(.data .gnu.linkonce.d.*) } 24 .data.rel.ro : { *(.data.rel.ro.local .data.rel.ro*) } 25 .data.rel.local : { *(.data.rel.local*) } 26 .got : { *(.got .got2) } 27 .sdata : { *(.sdata .sdata.* .gnu.linkonce.s.*) } 28 29 /* uninitialized data (in same segment as writable data) */ 30 __bss_start = .; 31 .sbss : { *(.sbss .sbss.* .gnu.linkonce.sb.*) } 32 .bss : { *(.bss .bss.* .gnu.linkonce.b.*) } 33 34 . = ALIGN(0x1000); 35 _end = . ; 36 37 /* Stabs debugging sections. */ 38 .stab 0 : { *(.stab) } 39 .stabstr 0 : { *(.stabstr) } 40 /* DWARF debug sections. 41 Symbols in the DWARF debugging sections are relative to the beginning 42 of the section so we begin them at 0. */ 43 /* DWARF 1 */ 44 .debug 0 : { *(.debug) } 45 .line 0 : { *(.line) } 46 /* GNU DWARF 1 extensions */ 47 .debug_srcinfo 0 : { *(.debug_srcinfo) } 48 .debug_sfnames 0 : { *(.debug_sfnames) } 49 /* DWARF 1.1 and DWARF 2 */ 50 .debug_aranges 0 : { *(.debug_aranges) } 51 .debug_pubnames 0 : { *(.debug_pubnames) } 52 /* DWARF 2 */ 53 .debug_info 0 : { *(.debug_info) } 54 .debug_abbrev 0 : { *(.debug_abbrev) } 55 .debug_line 0 : { *(.debug_line) } 56 .debug_frame 0 : { *(.debug_frame) } 57 .debug_str 0 : { *(.debug_str) } 58 .debug_loc 0 : { *(.debug_loc) } 59 .debug_macinfo 0 : { *(.debug_macinfo) } 60 /* SGI/MIPS DWARF 2 extensions */ 61 .debug_weaknames 0 : { *(.debug_weaknames) } 62 .debug_funcnames 0 : { *(.debug_funcnames) } 63 .debug_typenames 0 : { *(.debug_typenames) } 64 .debug_varnames 0 : { *(.debug_varnames) } 65 /* These must appear regardless of . */ 66 67 /* Strip unnecessary stuff */ 68/* /DISCARD/ : { *(.comment .note .eh_frame .dtors .stab .stabstr .debug*) }*/ 69} 70