Added changes to support C++ apps
authorAndrew Waterman <waterman@r53.millennium.berkeley.edu>
Wed, 4 Nov 2009 06:26:15 +0000 (22:26 -0800)
committerAndrew Waterman <waterman@r53.millennium.berkeley.edu>
Wed, 4 Nov 2009 06:26:15 +0000 (22:26 -0800)
commite2c85fbb8f02c92594a8e1bcb4864b6f1d0f2b13
treeace9675b281b914f22ced1eaeb6dca053fd9dec1
parent4b6811cad6c1595b60175f6dc63948aaee222ef3
Added changes to support C++ apps

Specifically, static initialization and destruction.  Need to
provide to g++ a __CTOR_LIST__ and __DTOR_LIST__ section in
the binary.  Also need to call all the CTORs before entering
main(), and need to use atexit() to call all the DTORs on exit.
user/parlib/src/i386/Makefrag
user/parlib/src/i386/crtbegin.S [new file with mode: 0644]
user/parlib/src/i386/crtend.S [new file with mode: 0644]
user/parlib/src/parlibmain.c
user/parlib/src/sparc/Makefrag
user/parlib/src/sparc/crtbegin.S [new file with mode: 0644]
user/parlib/src/sparc/crtend.S [new file with mode: 0644]