This is the mail archive of the ecos-devel@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: gcc-3.2 for SPARC port broken?


Jiri Gaisler wrote:

I am trying to clean up the leon2/sparc port, and add support for the upcoming leon3. I have noticed then when using gcc-3.2, the c++ contructors are not called in the right order and the apps crashes due to various null pointers. This does not happen with gcc-2.95.x .

Does somebody know a solution for this problem, or is the work-around
to stay with gcc-2.95.x ?

Seems possible that something has changed about the way this is handled. If you're still using a sparc-rtems triplet rather than sparc-elf, it might have changed in some way that is RTEMS specific. You might also want to objdump some .o files with prioritised constructors in to see if they have the correct section names (e.g. .ctors.12345). Or it might show they are in some other section. If it isn't obvious then a linker map may show up how the constructors are getting in.


Or of course it could be a bug :).

Jifl
--
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine


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