CTOR Section Problem
Joel Sherrill
joel.sherrill at OARcorp.com
Fri Feb 15 17:54:01 UTC 2008
Hi,
The reported exception with 4.3.0 is a
ctors problem. Something is happening in the
build of crtbegin.o that I haven't gotten
tracked down yet.
When it works, you have a crtbegin.o with
a .ctors and .dtors section with the 0xffffffff
in it. When it doesn't they end up in the .data
section.
I went back to the build trees for 4.2.3 and svn
and saved the preprocessed output for crtbegin
and they were the same. So I started doing objdumps
on crtbegin.o and found the culprit.
I have been looking at sparc using
rtems-4.9-sparc-rtems4.9-binutils-2.18-3.fc8.
I just did a rebuild of my SVN gcc and the
new crtbegin.o was OK. The one installed previously
was broken.
sparc-rtems4.9-objdump -das .../crtbegin.o
For 4.2.x, crtbegin has this
=========================================================
Contents of section .data:
0000 00000000 00000000 00000000 ............
Contents of section .ctors:
0000 ffffffff ....
Contents of section .dtors:
0000 ffffffff ....
=========================================================
Whe, crtbegin has no .ctors or .dtors sections
and this for .data:
=========================================================
Contents of section .data:
0000 00000000 ffffffff ffffffff 00000000 ................
=========================================================
I really have no explanation at this point and
until it happens again I can't do much more.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list