summaryrefslogtreecommitdiff
path: root/boot.backup1/frank1.ld
blob: 9de827ae77953663539429cb4824419c543e5f99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
OUTPUT_FORMAT("elf32-i386", "elf32-i386",
	      "elf32-i386")
OUTPUT_ARCH(i386)
ENTRY(_start)
 SEARCH_DIR(/usr/local/i386-gnuelf/lib);
/* Do we need any of these for elf?
   __DYNAMIC = 0;    */
SECTIONS
{
  /* Read-only sections, merged into text segment: */
  . = 0x10020;
  .text      :
  {
    *(.text)
  *(.interp)
  *(.hash)
  *(.dynsym)
  *(.dynstr)
  *(.rel.text)
  *(.rela.text)
  *(.rel.data)
  *(.rela.data)
  *(.rel.rodata)
  *(.rela.rodata)
  *(.rel.got)
  *(.rela.got)
  *(.rel.ctors)
  *(.rela.ctors)
  *(.rel.dtors)
  *(.rela.dtors)
  *(.rel.init)
  *(.rela.init)
  *(.rel.fini)
  *(.rela.fini)
  *(.rel.bss)
  *(.rela.bss)
  *(.rel.plt)
  *(.rela.plt)
  *(.init)
  *(.plt)
    /* .gnu.warning sections are handled specially by elf32.em.  */
    *(.gnu.warning)
  *(.fini)
  *(.rodata)
  *(.rodata1)
  _etext = .;
  PROVIDE (etext = .);
  . = ALIGN(0x1000);
  } =0x9090
  . =  ALIGN(0x1000);
  .data    :
  {
    *(.data)
    CONSTRUCTORS

  *(.data1) 
  *(.ctors)
  *(.dtors)
  *(.got.plt) *(.got) 
  *(.dynamic)
  /* We want the small data sections together, so single-instruction offsets
     can access them all, and initialized data all before uninitialized, so
     we can shorten the on-disk segment size.  */
  *(.sdata)
  _edata  =  .;
  PROVIDE (edata = .);
  . = ALIGN(0x10);
}
  __bss_start = .;
  .bss       :
  {
 *(.sbss) *(.scommon) 
   *(.dynbss)
   *(.bss)
   *(COMMON)
  _end = ALIGN(4) ;
  PROVIDE (end = ALIGN(4));
  }
  /* These are needed for ELF backends which have not yet been
     converted to the new style linker.  */
  .stab 0 : { *(.stab) }
  .stabstr 0 : { *(.stabstr) }
  /* DWARF debug sections.
     Symbols in the .debug DWARF section are relative to the beginning of the
     section so we begin .debug at 0.  It's not clear yet what needs to happen
     for the others.   */
  .debug          0 : { *(.debug) }
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
  .debug_aranges  0 : { *(.debug_aranges) }
  .debug_pubnames 0 : { *(.debug_pubnames) }
  .debug_sfnames  0 : { *(.debug_sfnames) }
  .line           0 : { *(.line) }
  /* These must appear regardless of  .  */
}