This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
using gcc for cross m68k development i have a problem in assigning the sections to memory regions. the linker script is
MEMORY {
flash : ORIGIN = 0x01200000,
LENGTH = 6M
dram : ORIGIN = 0x04000000,
LENGTH = 1M
}
OUTPUT_FORMAT ( COFF )
SECTIONS {
.data : AT ( ADDR(.text) + SIZEOF(.text) ) {
} > dram = 0x0
.text : {
} > flash = 0xFF
.bss : {
} > dram = 0x0
}
The linker does not locate the .text section as exspected to the region beginning at 0x1200000. It locates it starting at 0x1000000 instead and fails because the end of the .text section is not in the flash region.
So far so bad. Where is the fault?
--
Schöne Grüße aus Reutlingen
Wolfram Wadepohl
Entwicklung
--
INDUMAT GmbH & Co. KG
Transport- und Lagersysteme
Dieselstraße 6
D-72770 Reutlingen - Betzingen
Tel. +49 (0)71 21/5 14-2 89
Fax +49 (0)71 21/5 14-2 99
eMail W.Wadepohl@indumat.de
WWW http://www.indumat.de
--
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |