1OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") 2OUTPUT_ARCH(i386) 3 4ENTRY(_start) 5SECTIONS 6{ 7 . = 0x10000; 8 9 /* text/read-only data */ 10 .text : { *(.text .gnu.linkonce.t.*) } 11 12 . = ALIGN(0x4); 13 __ctor_list = .; 14 .ctors : { *(.ctors) } 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 /* unintialized data (in same segment as writable data) */ 25 __bss_start = .; 26 .bss : { *(.bss) } 27 28 . = ALIGN(0x1000); 29 _end = . ; 30 31 /* Strip unnecessary stuff */ 32 /DISCARD/ : { *(.comment .note .eh_frame .dtors .stab .stabstr .debug*) } 33} 34