This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


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

Re: Patch to JFFS2 to run on ARM9



The code generated is just plain wrong, at least at optimization level 0. In creating the initialization value for the structure, it uses the element .magic for intermediate storage to store .nodetype, with the net effect that "marker" is initialized as .magic = cpu_to_je16(JFFS2_NODETYPE_CLEANMARKER), .nodetype = cpu_to_je16(JFFS2_NODETYPE_CLEANMARKER), .totlen = cpu_to_je32(c->cleanmarker_size)


this has been discussed before.It is a bug in gcc 3.2.1 so for ARM it is recommended to use gcc>3.3.The ecos site should mention this I think. People new to ecos should search the mail archives to see if they encountered a known problem, but part of being new is not knowing this :).



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