]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/utx8245/u-boot.lds
Initial revision
[karo-tx-uboot.git] / board / utx8245 / u-boot.lds
1 /*
2  * (C) Copyright 2001
3  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4  *
5  * (C) Copyright 2002
6  * Gregory E. Allen, gallen@arlut.utexas.edu
7  * Matthew E. Karger, karger@arlut.utexas.edu
8  * Applied Research Laboratories, The University of Texas at Austin
9  *
10  * See file CREDITS for list of people who contributed to this
11  * project.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License as
15  * published by the Free Software Foundation; either version 2 of
16  * the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
26  * MA 02111-1307 USA
27  */
28
29 OUTPUT_ARCH(powerpc)
30 SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
31 /* Do we need any of these for elf?
32    __DYNAMIC = 0;    */
33 SECTIONS
34 {
35   /* Read-only sections, merged into text segment: */
36   . = + SIZEOF_HEADERS;
37   .interp : { *(.interp) }
38   .hash          : { *(.hash)           }
39   .dynsym        : { *(.dynsym)         }
40   .dynstr        : { *(.dynstr)         }
41   .rel.text      : { *(.rel.text)       }
42   .rela.text     : { *(.rela.text)      }
43   .rel.data      : { *(.rel.data)       }
44   .rela.data     : { *(.rela.data)      }
45   .rel.rodata    : { *(.rel.rodata)     }
46   .rela.rodata   : { *(.rela.rodata)    }
47   .rel.got       : { *(.rel.got)        }
48   .rela.got      : { *(.rela.got)       }
49   .rel.ctors     : { *(.rel.ctors)      }
50   .rela.ctors    : { *(.rela.ctors)     }
51   .rel.dtors     : { *(.rel.dtors)      }
52   .rela.dtors    : { *(.rela.dtors)     }
53   .rel.bss       : { *(.rel.bss)        }
54   .rela.bss      : { *(.rela.bss)       }
55   .rel.plt       : { *(.rel.plt)        }
56   .rela.plt      : { *(.rela.plt)       }
57   .init          : { *(.init)           }
58   .plt : { *(.plt) }
59   .text      :
60   {
61     cpu/mpc824x/start.o         (.text)
62     lib_ppc/board.o             (.text)
63     lib_ppc/ppcstring.o         (.text)
64     lib_generic/vsprintf.o      (.text)
65     lib_generic/crc32.o         (.text)
66     lib_generic/zlib.o          (.text)
67
68         . = DEFINED(env_offset) ? env_offset : .;
69     common/environment.o (.text)
70
71         *(.text)
72
73     *(.fixup)
74     *(.got1)
75     . = ALIGN(16);
76     *(.rodata)
77     *(.rodata1)
78   }
79   .fini      : { *(.fini)    } =0
80   .ctors     : { *(.ctors)   }
81   .dtors     : { *(.dtors)   }
82
83   /* Read-write section, merged into data segment: */
84   . = (. + 0x0FFF) & 0xFFFFF000;
85   _erotext = .;
86   PROVIDE (erotext = .);
87   .reloc   :
88   {
89     *(.got)
90     _GOT2_TABLE_ = .;
91     *(.got2)
92     _FIXUP_TABLE_ = .;
93     *(.fixup)
94   }
95   __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
96   __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
97
98   .data    :
99   {
100     *(.data)
101     *(.data1)
102     *(.sdata)
103     *(.sdata2)
104     *(.dynamic)
105     CONSTRUCTORS
106   }
107   _edata  =  .;
108   PROVIDE (edata = .);
109
110   __start___ex_table = .;
111   __ex_table : { *(__ex_table) }
112   __stop___ex_table = .;
113
114   . = ALIGN(4096);
115   __init_begin = .;
116   .text.init : { *(.text.init) }
117   .data.init : { *(.data.init) }
118   . = ALIGN(4096);
119   __init_end = .;
120
121   __bss_start = .;
122   .bss       :
123   {
124    *(.sbss) *(.scommon)
125    *(.dynbss)
126    *(.bss)
127    *(COMMON)
128   }
129
130   _end = . ;
131   PROVIDE (end = .);
132 }
133