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:


Jonathan Larmour wrote:

Jiri Gaisler wrote:


I have investigated a bit further, and the problem comes when additional packages such as fileio are enabled. In such cases, the constructors from the other packages are run before the kernel constructors, resulting in crashes because certain kernel variables are not initialised.



Sure. But this probably means _no_ constructor priority is working - fileio is just what shows that fact up first.


The constructors _are_ called, but in the wrong order. I have
stepped through the code to verify this. Funny enough, rtems
gets it right even with gcc-3.2 so it might not be a compiler
problem. If only the basic kernel package is used, all tests
runs fine. As soon as I add a package with its own constructors,
the constructors from kernel are run last, rather than first.

I really think you should look at sparc-elf-objdump -h of the relevant .o files to find out!


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]