diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2008-01-04 07:16:03 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2008-01-04 07:16:03 +0000 |
commit | 74ee68dd0014d3db08b97324f3a9fd66b156ed6c (patch) | |
tree | 68edbe4a9a825ab45b175839b09016570c2acdeb | |
parent | 2008-01-03 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-74ee68dd0014d3db08b97324f3a9fd66b156ed6c.tar.bz2 |
2008-01-03 Till Straumann <strauman@slac.stanford.edu>
* 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).
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/ChangeLog | 7 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/bsp_specs | 2 |
2 files changed, 8 insertions, 1 deletions
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 <strauman@slac.stanford.edu> + + * 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 <strauman@slac.stanford.edu> * 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} |