public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Trenton D. Adams" <tadams@theone.dnsalias.com>
To: "'Gary Thomas'" <gthomas@redhat.com>
Cc: "'Fabrice Gautier'" <Fabrice_Gautier@sdesigns.com>,
	"'eCos Discussion'" <ecos-discuss@sourceware.cygnus.com>
Subject: RE: [ECOS] --entry= (slightly off topic)
Date: Fri, 21 Sep 2001 08:22:00 -0000	[thread overview]
Message-ID: <000901c142b1$1edae0b0$090110ac@TRENT> (raw)
In-Reply-To: <1001028000.8950.235.camel@station91>

> 
> On Fri, 2001-09-21 at 08:14, Trenton D. Adams wrote:
> > I don't want an object in ELF format at the end.  I use 
> objcopy to copy
> > to binary format.  This is going to be the boot code that's 
> loaded into
> > the board for flashing it with RedBoot or something like that.
> > 
> > In this case do I want a linker script?  I'm not remapping 
> any memory or
> > anything like that.
> > 
> 
> Look at the build rules for RedBoot - we do exactly this all the time.
> An image is created, destined for either RAM or ROM and then "munged"
> into the most appropriate format.  Binary is the most common case as 
> this is exactly what you want to go into the ROM [image].
> 

I assume you're talking about the ROM ldi file?  I should change the rom
origin to be 0x00000000 since that's what it is in boot strap mode
right?

#include <cyg/infra/cyg_type.inc>

MEMORY
{
    ram : ORIGIN = 0, LENGTH = 0xfd7000
    sram : ORIGIN = 0x60000000, LENGTH = 0x9c00
    rom : ORIGIN = 0xe0000000, LENGTH = 0x800000
}

SECTIONS
{
    SECTIONS_BEGIN
    SECTION_rom_vectors (rom, 0xe0000000, LMA_EQ_VMA)
    SECTION_text (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_fini (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_rodata (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_rodata1 (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_fixup (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_gcc_except_table (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_mmu_tables (rom, ALIGN (0x4000), LMA_EQ_VMA)
    SECTION_fixed_vectors (ram, 0x20, LMA_EQ_VMA)
    SECTION_data (ram, 0x1000, FOLLOWING (.mmu_tables))
    SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA)
    CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
    CYG_LABEL_DEFN(__sram) = 0x60000000;
    SECTIONS_END
}

  reply	other threads:[~2001-09-21  8:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-20 15:23 Fabrice Gautier
2001-09-20 16:15 ` Trenton D. Adams
2001-09-20 16:23   ` Gary Thomas
2001-09-21  8:22     ` Trenton D. Adams [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-09-20 16:29 Fabrice Gautier
2001-09-21  8:04 ` Trenton D. Adams
2001-09-20 15:18 Fabrice Gautier
2001-09-20 16:14 ` Trenton D. Adams
2001-09-20 15:09 Trenton D. Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000901c142b1$1edae0b0$090110ac@TRENT' \
    --to=tadams@theone.dnsalias.com \
    --cc=Fabrice_Gautier@sdesigns.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=gthomas@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).