1bd9715e3SKumar Gala/* 2bd9715e3SKumar Gala * Copyright 2006, 2007 Freescale Semiconductor, Inc. 3bd9715e3SKumar Gala * 4bd9715e3SKumar Gala * See file CREDITS for list of people who contributed to this 5bd9715e3SKumar Gala * project. 6bd9715e3SKumar Gala * 7bd9715e3SKumar Gala * This program is free software; you can redistribute it and/or 8bd9715e3SKumar Gala * modify it under the terms of the GNU General Public License as 9bd9715e3SKumar Gala * published by the Free Software Foundation; either version 2 of 10bd9715e3SKumar Gala * the License, or (at your option) any later version. 11bd9715e3SKumar Gala * 12bd9715e3SKumar Gala * This program is distributed in the hope that it will be useful, 13bd9715e3SKumar Gala * but WITHOUT ANY WARRANTY; without even the implied warranty of 14bd9715e3SKumar Gala * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15bd9715e3SKumar Gala * GNU General Public License for more details. 16bd9715e3SKumar Gala * 17bd9715e3SKumar Gala * You should have received a copy of the GNU General Public License 18bd9715e3SKumar Gala * along with this program; if not, write to the Free Software 19bd9715e3SKumar Gala * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20bd9715e3SKumar Gala * MA 02111-1307 USA 21bd9715e3SKumar Gala */ 22bd9715e3SKumar Gala 23bd9715e3SKumar GalaOUTPUT_ARCH(powerpc) 24bd9715e3SKumar Gala 25bd9715e3SKumar GalaSECTIONS 26bd9715e3SKumar Gala{ 27bd9715e3SKumar Gala 28bd9715e3SKumar Gala /* Read-only sections, merged into text segment: */ 29bd9715e3SKumar Gala .text : 30bd9715e3SKumar Gala { 31*4e2894beSWolfgang Denk arch/powerpc/cpu/mpc86xx/start.o (.text*) 32*4e2894beSWolfgang Denk arch/powerpc/cpu/mpc86xx/traps.o (.text*) 3368337fb5SPeter Tyser *(.text*) 34bd9715e3SKumar Gala } 35bd9715e3SKumar Gala _etext = .; 36bd9715e3SKumar Gala PROVIDE (etext = .); 37bd9715e3SKumar Gala .rodata : 38bd9715e3SKumar Gala { 39bd9715e3SKumar Gala *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) 40bd9715e3SKumar Gala } 41bd9715e3SKumar Gala 42bd9715e3SKumar Gala /* Read-write section, merged into data segment: */ 43bd9715e3SKumar Gala . = (. + 0x00FF) & 0xFFFFFF00; 44bd9715e3SKumar Gala _erotext = .; 45bd9715e3SKumar Gala PROVIDE (erotext = .); 46bd9715e3SKumar Gala .reloc : 47bd9715e3SKumar Gala { 4868337fb5SPeter Tyser KEEP(*(.got)) 49bd9715e3SKumar Gala _GOT2_TABLE_ = .; 5068337fb5SPeter Tyser KEEP(*(.got2)) 51bd9715e3SKumar Gala _FIXUP_TABLE_ = .; 5268337fb5SPeter Tyser KEEP(*(.fixup)) 53bd9715e3SKumar Gala } 54bd9715e3SKumar Gala __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2; 55bd9715e3SKumar Gala __fixup_entries = (. - _FIXUP_TABLE_) >> 2; 56bd9715e3SKumar Gala 57bd9715e3SKumar Gala .data : 58bd9715e3SKumar Gala { 5968337fb5SPeter Tyser *(.data*) 6068337fb5SPeter Tyser *(.sdata*) 61bd9715e3SKumar Gala } 62bd9715e3SKumar Gala _edata = .; 63bd9715e3SKumar Gala PROVIDE (edata = .); 64bd9715e3SKumar Gala 65bd9715e3SKumar Gala . = .; 66bd9715e3SKumar Gala __u_boot_cmd_start = .; 67bd9715e3SKumar Gala .u_boot_cmd : { *(.u_boot_cmd) } 68bd9715e3SKumar Gala __u_boot_cmd_end = .; 69bd9715e3SKumar Gala 70bd9715e3SKumar Gala . = .; 71bd9715e3SKumar Gala __start___ex_table = .; 72bd9715e3SKumar Gala __ex_table : { *(__ex_table) } 73bd9715e3SKumar Gala __stop___ex_table = .; 74bd9715e3SKumar Gala 75bd9715e3SKumar Gala . = ALIGN(256); 76bd9715e3SKumar Gala __init_begin = .; 77bd9715e3SKumar Gala .text.init : { *(.text.init) } 78bd9715e3SKumar Gala .data.init : { *(.data.init) } 79bd9715e3SKumar Gala . = ALIGN(256); 80bd9715e3SKumar Gala __init_end = .; 81bd9715e3SKumar Gala 82bd9715e3SKumar Gala __bss_start = .; 83bd9715e3SKumar Gala .bss (NOLOAD) : 84bd9715e3SKumar Gala { 8568337fb5SPeter Tyser *(.bss*) 86*4e2894beSWolfgang Denk *(.sbss*) 87bd9715e3SKumar Gala *(COMMON) 88bd9715e3SKumar Gala . = ALIGN(4); 89bd9715e3SKumar Gala } 90bd9715e3SKumar Gala _end = . ; 91bd9715e3SKumar Gala PROVIDE (end = .); 92bd9715e3SKumar Gala} 93