startup embedded target
William A. Gatliff
bgat@saturn.billgatliff.com
Fri Jul 20 06:45:00 GMT 2001
Jan:
> I have been looking at the info-pages of the 'ld', but i don't
> really know how to force those constants at 0x0 and 0x4.
Maybe something like this? Subject to the usual disclaimers about
syntax and the like--- I'm making this up as I go, not copying from a
source file...
typedef struct {
void* stack;
void(*pc)(void);
} reset_vector_T;
const reset_vector_T reset_vector =
{
0xb40000,
main
} __attribute((section".vect")))
...
MEMORY {
vect (rx) : origin=0, len=8
...
}
SECTIONS {
.vect : { *(.vect) } >vect
...
}
HTH,
b.g.
--
Bill Gatliff
bgat@billgatliff.com
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list