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 .gnu.linkonce.t.*) } 11 12 . = ALIGN(0x4); 13 __ctor_list = .; 14 .ctors : { *(.ctors) *(.init_array) } 15 __ctor_end = .; 16 17 .rodata : { *(.rodata .rodata.*) } 18 19 /* writable data */ 20 . = ALIGN(0x1000); 21 __data_start = .; 22 .data : { *(.data .gnu.linkonce.d.*) } 23 24 /* uninitialized data (in same segment as writable data) */ 25 __bss_start = .; 26 .bss : { *(.bss) } 27 28 . = ALIGN(0x1000); 29 _end = . ; 30 31 /* Stabs debugging sections. */ 32 .stab 0 : { *(.stab) } 33 .stabstr 0 : { *(.stabstr) } 34 /* DWARF debug sections. 35 Symbols in the DWARF debugging sections are relative to the beginning 36 of the section so we begin them at 0. */ 37 /* DWARF 1 */ 38 .debug 0 : { *(.debug) } 39 .line 0 : { *(.line) } 40 /* GNU DWARF 1 extensions */ 41 .debug_srcinfo 0 : { *(.debug_srcinfo) } 42 .debug_sfnames 0 : { *(.debug_sfnames) } 43 /* DWARF 1.1 and DWARF 2 */ 44 .debug_aranges 0 : { *(.debug_aranges) } 45 .debug_pubnames 0 : { *(.debug_pubnames) } 46 /* DWARF 2 */ 47 .debug_info 0 : { *(.debug_info) } 48 .debug_abbrev 0 : { *(.debug_abbrev) } 49 .debug_line 0 : { *(.debug_line) } 50 .debug_frame 0 : { *(.debug_frame) } 51 .debug_str 0 : { *(.debug_str) } 52 .debug_loc 0 : { *(.debug_loc) } 53 .debug_macinfo 0 : { *(.debug_macinfo) } 54 /* SGI/MIPS DWARF 2 extensions */ 55 .debug_weaknames 0 : { *(.debug_weaknames) } 56 .debug_funcnames 0 : { *(.debug_funcnames) } 57 .debug_typenames 0 : { *(.debug_typenames) } 58 .debug_varnames 0 : { *(.debug_varnames) } 59 /* These must appear regardless of . */ 60 61 /* Strip unnecessary stuff */ 62/* /DISCARD/ : { *(.comment .note .eh_frame .dtors .stab .stabstr .debug*) }*/ 63} 64