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] |
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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |