1 /* Default linker script, for normal executables */ 2 /* Modified for Android. */ 3 OUTPUT_FORMAT("a.out-i386-linux", "a.out-i386-linux", 4 "a.out-i386-linux") 5 OUTPUT_ARCH(i386) 6 PROVIDE (__stack = 0); 7 SECTIONS 8 { 9 . = 0x1020; 10 .text : 11 { 12 CREATE_OBJECT_SYMBOLS 13 *(.text) 14 /* The next six sections are for SunOS dynamic linking. The order 15 is important. */ 16 *(.dynrel) 17 *(.hash) 18 *(.dynsym) 19 *(.dynstr) 20 *(.rules) 21 *(.need) 22 _etext = .; 23 __etext = .; 24 } 25 . = ALIGN(0x1000); 26 .data : 27 { 28 /* The first three sections are for SunOS dynamic linking. */ 29 *(.dynamic) 30 *(.got) 31 *(.plt) 32 *(.data) 33 *(.linux-dynamic) /* For Linux dynamic linking. */ 34 CONSTRUCTORS 35 _edata = .; 36 __edata = .; 37 } 38 .bss : 39 { 40 __bss_start = .; 41 *(.bss) 42 *(COMMON) 43 . = ALIGN(4); 44 _end = . ; 45 __end = . ; 46 } 47 } 48