1*83d290c5STom Rini/* SPDX-License-Identifier: GPL-2.0+ */ 2bd9715e3SKumar Gala/* 3bd9715e3SKumar Gala * Copyright 2006, 2007 Freescale Semiconductor, Inc. 4bd9715e3SKumar Gala */ 5bd9715e3SKumar Gala 6bd9715e3SKumar GalaOUTPUT_ARCH(powerpc) 7bd9715e3SKumar Gala 8bd9715e3SKumar GalaSECTIONS 9bd9715e3SKumar Gala{ 10bd9715e3SKumar Gala 11bd9715e3SKumar Gala /* Read-only sections, merged into text segment: */ 12bd9715e3SKumar Gala .text : 13bd9715e3SKumar Gala { 144e2894beSWolfgang Denk arch/powerpc/cpu/mpc86xx/start.o (.text*) 154e2894beSWolfgang Denk arch/powerpc/cpu/mpc86xx/traps.o (.text*) 1668337fb5SPeter Tyser *(.text*) 17bd9715e3SKumar Gala } 18bd9715e3SKumar Gala _etext = .; 19bd9715e3SKumar Gala PROVIDE (etext = .); 20bd9715e3SKumar Gala .rodata : 21bd9715e3SKumar Gala { 22bd9715e3SKumar Gala *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) 23bd9715e3SKumar Gala } 24bd9715e3SKumar Gala 25bd9715e3SKumar Gala /* Read-write section, merged into data segment: */ 26bd9715e3SKumar Gala . = (. + 0x00FF) & 0xFFFFFF00; 27bd9715e3SKumar Gala _erotext = .; 28bd9715e3SKumar Gala PROVIDE (erotext = .); 29bd9715e3SKumar Gala .reloc : 30bd9715e3SKumar Gala { 31bd9715e3SKumar Gala _GOT2_TABLE_ = .; 3268337fb5SPeter Tyser KEEP(*(.got2)) 33337f5f50SJoakim Tjernlund KEEP(*(.got)) 34bd9715e3SKumar Gala _FIXUP_TABLE_ = .; 3568337fb5SPeter Tyser KEEP(*(.fixup)) 36bd9715e3SKumar Gala } 37337f5f50SJoakim Tjernlund __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; 38bd9715e3SKumar Gala __fixup_entries = (. - _FIXUP_TABLE_) >> 2; 39bd9715e3SKumar Gala 40bd9715e3SKumar Gala .data : 41bd9715e3SKumar Gala { 4268337fb5SPeter Tyser *(.data*) 4368337fb5SPeter Tyser *(.sdata*) 44bd9715e3SKumar Gala } 45bd9715e3SKumar Gala _edata = .; 46bd9715e3SKumar Gala PROVIDE (edata = .); 47bd9715e3SKumar Gala 48bd9715e3SKumar Gala . = .; 49bd9715e3SKumar Gala 5055675142SMarek Vasut . = ALIGN(4); 5155675142SMarek Vasut .u_boot_list : { 52ef123c52SAlbert ARIBAUD KEEP(*(SORT(.u_boot_list*))); 5355675142SMarek Vasut } 5455675142SMarek Vasut 55bd9715e3SKumar Gala . = .; 56bd9715e3SKumar Gala __start___ex_table = .; 57bd9715e3SKumar Gala __ex_table : { *(__ex_table) } 58bd9715e3SKumar Gala __stop___ex_table = .; 59bd9715e3SKumar Gala 60bd9715e3SKumar Gala . = ALIGN(256); 61bd9715e3SKumar Gala __init_begin = .; 62bd9715e3SKumar Gala .text.init : { *(.text.init) } 63bd9715e3SKumar Gala .data.init : { *(.data.init) } 64bd9715e3SKumar Gala . = ALIGN(256); 65bd9715e3SKumar Gala __init_end = .; 66bd9715e3SKumar Gala 67bd9715e3SKumar Gala __bss_start = .; 68bd9715e3SKumar Gala .bss (NOLOAD) : 69bd9715e3SKumar Gala { 7068337fb5SPeter Tyser *(.bss*) 714e2894beSWolfgang Denk *(.sbss*) 72bd9715e3SKumar Gala *(COMMON) 73bd9715e3SKumar Gala . = ALIGN(4); 74bd9715e3SKumar Gala } 753929fb0aSSimon Glass __bss_end = . ; 76bd9715e3SKumar Gala PROVIDE (end = .); 77bd9715e3SKumar Gala} 78