xxboot.ldscript revision 1.2 1 OUTPUT_FORMAT("binary", "binary", "binary")
2 OUTPUT_ARCH(m68k)
3 ENTRY(start)
4 SEARCH_DIR(/usr/lib);
5 /*__DYNAMIC = 0; */
6 PROVIDE (__stack = 0);
7 SECTIONS
8 {
9 . = TEXTADDR;
10 .text :
11 {
12 CREATE_OBJECT_SYMBOLS
13 *(.text)
14 *(.rodata)
15 /* The next six sections are for SunOS dynamic linking. The order
16 is important. */
17 *(.dynrel)
18 *(.hash)
19 *(.dynsym)
20 *(.dynstr)
21 *(.rules)
22 *(.need)
23 etext = .;
24 _etext = .;
25 }
26 /* . = ALIGN(0x2000); */
27 .data :
28 {
29 /* The first three sections are for SunOS dynamic linking. */
30 *(.dynamic)
31 *(.got)
32 *(.plt)
33 *(.data)
34 *(.linux-dynamic) /* For Linux dynamic linking. */
35 CONSTRUCTORS
36 edata = .;
37 _edata = .;
38 }
39 . = TEXTADDR + TEXTDATASIZE;
40 .bss :
41 {
42 __bss_start = .;
43 *(.bss)
44 *(COMMON)
45 end = ALIGN(4) ;
46 _end = ALIGN(4) ;
47 }
48 /DISCARD/ : { *(.ident) *(.stab) *(.stabstr) }
49 }
50