xxboot.ldscript revision 1.5 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 .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 end = ALIGN(4) ;
44 _end = ALIGN(4) ;
45 }
46 /DISCARD/ : { *(.ident) *(.stab) *(.stabstr) }
47 }
48
49 ASSERT(first_kbyte - TEXTADDR <= 1024, "Error: first_kbyte exceeds 1KB");
50 ASSERT(_edata - TEXTADDR <= TEXTDATASIZE,
51 "Error: text+data is too large to bootarea");
52