This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ROMable application with gnuh8-elf toolchain


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

I'm looking for any kind of information (or examples) on how to produce
romable H8S applications using an ELF tool chain.

I'm not that aware with the ELF format and therefor I'm not sure, which
sections mentioned in ld's linker script should be placed to which
memory regions.
Currently I'm planning to set up a memory layout consisting of those
regions:

MEMORY
{
~    /* interrupt vectors  */
~    vectors : o = 0x000000, l = 0x000200

~    /* normal ram  */
~    ram     : o = 0xff7000, l = 0x007fbc

~    /* normal rom  */
~    rom     : o = 0x000200, l = 0x05fe00

~    /* The stack starts at the top of main ram.  */
~    topram  : o = 0xffefbc, l = 0x000004

~    /* At the very top of the address space is the 8-bit area.  */
~    eight   : o = 0xffffc0, l = 0x000040
}

Where can I find the information on how to spread the program's sections
to these memory regions? Which memory sections should have a VMA
located anywhere in RAM, but have to be loaded to ROM (LMA != VMA)?

Or should I perhaps refrain from using an ELF tool chain and better set
up a COFF tool chain?

thanks a lot
~    stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+4goEQwX1K5W3w68RAh7eAJ4x8E7u6/h+Y91QEhOAuwH0P9SCAwCfTYnr
mUfBv4vkNaz0d0yz7nHegyg=
=4GOf
-----END PGP SIGNATURE-----


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]