Note: Xloader linker script, added my comment

/*
* November 2006 – Changed to support 3430sdp device
* Copyright (c) 2004-2006 Texas Instruments
*
* (C) Copyright 2002
* Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/

OUTPUT_FORMAT(“elf32-littlearm", “elf32-littlearm", “elf32-littlearm")
OUTPUT_ARCH(arm) // CPU Architecture
ENTRY(_start)              // Start/Entry point
SECTIONS
{
    . = 0x00000000;     // address of link, Entry point will place to the address

    . = ALIGN(4);   // Memory Aligement
    .text      : // code segment
    {
      cpu/omap3/start.o    (.text)   // Code Object file
      *(.text)
    }

    . = ALIGN(4);
    .rodata : { *(.rodata) }  // readonly segment

    . = ALIGN(4);
    .data : { *(.data) }         // data segment

    . = ALIGN(4);
    .got : { *(.got) }

    . = ALIGN(4);
    __bss_start = .;
    .bss : { *(.bss) }
    _end = .;
}

The x-load.lds is a linker script to describe about a program in run time layout when load into memory. we can get the program start point at 0x00000000, label name is “_start”, and define in ./cpu/omap3/start.o

file path: ./board/omap3430sdp/x-load.lds

廣告

一個回應 to “Note: Xloader linker script, added my comment”

  1. […] path: .cpuomap3start.S, see Note: Xloader Linker Script, Added My Comment  2010 年 11 月 21 日  kunyichen 分類: ARM, OMAP3, XLoader LikeBe the […]

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s

%d 位部落客按了讚: