diff --git a/c/src/lib/libbsp/powerpc/psim/ChangeLog b/c/src/lib/libbsp/powerpc/psim/ChangeLog index bc1104b353..7f976660c3 100644 --- a/c/src/lib/libbsp/powerpc/psim/ChangeLog +++ b/c/src/lib/libbsp/powerpc/psim/ChangeLog @@ -1,3 +1,10 @@ +2008-01-03 Till Straumann + + * bsp_specs: added crtend.o back to the endfiles. Otherwise, + C++ static constructors are not executed because the + call to __do_global_ctors_aux() is emitted into the .init + section by this endfile (yes, the endfile contributes to .init). + 2007-12-11 Till Straumann * Makefile.am: use new irq_bspsupport.rel which was diff --git a/c/src/lib/libbsp/powerpc/psim/bsp_specs b/c/src/lib/libbsp/powerpc/psim/bsp_specs index baa61c2660..bf11aa9a83 100644 --- a/c/src/lib/libbsp/powerpc/psim/bsp_specs +++ b/c/src/lib/libbsp/powerpc/psim/bsp_specs @@ -10,4 +10,4 @@ %{!qrtems: %(old_link)} %{qrtems: -Qy -dp -Bstatic -e _start -u __vectors} *endfile: -%{!qrtems: %(old_endfile)} %{qrtems: ecrtn.o%s} +%{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s ecrtn.o%s}