more changes on original files
[linux-2.4.git] / arch / ppc / boot / ld.script
1 OUTPUT_ARCH(powerpc)
2 SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
3 /* Do we need any of these for elf?
4    __DYNAMIC = 0;    */
5 SECTIONS
6 {
7   /* Read-only sections, merged into text segment: */
8   . = + SIZEOF_HEADERS;
9   .interp : { *(.interp) }
10   .hash          : { *(.hash)           }
11   .dynsym        : { *(.dynsym)         }
12   .dynstr        : { *(.dynstr)         }
13   .rel.text      : { *(.rel.text)               }
14   .rela.text     : { *(.rela.text)      }
15   .rel.data      : { *(.rel.data)               }
16   .rela.data     : { *(.rela.data)      }
17   .rel.rodata    : { *(.rel.rodata)     }
18   .rela.rodata   : { *(.rela.rodata)    }
19   .rel.got       : { *(.rel.got)                }
20   .rela.got      : { *(.rela.got)               }
21   .rel.ctors     : { *(.rel.ctors)      }
22   .rela.ctors    : { *(.rela.ctors)     }
23   .rel.dtors     : { *(.rel.dtors)      }
24   .rela.dtors    : { *(.rela.dtors)     }
25   .rel.bss       : { *(.rel.bss)                }
26   .rela.bss      : { *(.rela.bss)               }
27   .rel.plt       : { *(.rel.plt)                }
28   .rela.plt      : { *(.rela.plt)               }
29   .plt : { *(.plt) }
30   .text      :
31   {
32     *(.text)
33     *(.fixup)
34     __relocate_start = .;
35     *(.relocate_code)
36     __relocate_end = .;
37   }
38   _etext = .;
39   PROVIDE (etext = .);
40
41   /* Read-write section, merged into data segment: */
42   . = ALIGN(4096);
43   .data    :
44   {
45     *(.data)
46     *(.data1)
47     *(.data.boot)
48     *(.sdata)
49     *(.sdata2)
50     *(.got.plt) *(.got)
51     *(.dynamic)
52     *(.rodata)
53     *(.rodata.*)
54     *(.rodata1)
55     *(.got1)
56     __image_begin = .;
57     *(.image)
58     __image_end = .;
59     . = ALIGN(4096);
60     __ramdisk_begin = .;
61     *(.ramdisk)
62     __ramdisk_end = .;
63     . = ALIGN(4096);
64     __sysmap_begin = .;
65     *(.sysmap)
66     __sysmap_end = .;
67     . = ALIGN(4096);
68     CONSTRUCTORS
69   }
70   _edata  =  .;
71   PROVIDE (edata = .);
72
73   . = ALIGN(8);
74   __bss_start = .;
75   .bss       :
76   {
77    *(.sbss) *(.scommon)
78    *(.dynbss)
79    *(.bss)
80    *(COMMON)
81   }
82   _end = . ;
83   PROVIDE (end = .);
84 }