[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] microblaze-uclinux-elf2flt mistranslation



Hi,

Has anyone run into problems with microblaze-uclinux-elf2flt?

We have a program that contains a constant global array something like
this:

const struct
{
   const char*          source;
   const char*          target;
   unsigned long        flags;
   const char*          options;
   unsigned int         channel;
   unsigned long        devnum;
} myGlobalStruct[9] = { blah blah blah };

What we are seeing is for certain sequences of executable code, one of
the .target fields in the array gets mis-translated, so instead of
pointing to the constant string associated with array element [3], it
points to the constant string associated with array element [0]. It's
definitely a translation problem because I can use
microblaze-uclinux-objcopy to extract the .data segment from the .gdb
file and the structure is correct there.

Depending on how we change the program flow, the problem can come and
go. If we add a printf to one module the problem goes away.

Any suggestions? Is there a more recent version of microblaze-uclinux
tools available anywhere, or in the works? Tool problems like this make
us very nervous because there's no telling what else is being corrupted.

Thanks.
------------------------------------------------------------------------
 Steven J. Magnani               "I claim this network for MARS!
 www.digidescorp.com              Earthling, return my space modulator!"

 #include <standard.disclaimer>


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/