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]

arm-elf : initializing variables


Hello,

I built an arm-elf chain tool to compile application for an embedded
environnement.
This work fine, but I cannot find out how to have my initialized variables
initialized.
I used a fromelf utility that just convert the .text section to pure binary
code
(the only thing my loader understands), but, that way, I cannot keep the
initial values
found in the ELF executable. On other tool chains, I used a special feature
of both
the compiler and linker to have those initial values put in a special RO
section, the
variables to be initialized put first in link order, and I simply have to
copy
the former into the latter at the beginning of the code.
Is there such a feature I can use in arm-elf target ? And how ?
Or Should I swicth to an other target that is more intended to generate
plain binary executables ?

-----
Arnaud




------
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]