This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[VXWORKS PPC 2.95.3] vxworks-ctors.patch
- To: "gcc-patches" <gcc-patches at gcc dot gnu dot org>
- Subject: [VXWORKS PPC 2.95.3] vxworks-ctors.patch
- From: "Dave Korn" <davek-ml at ntlworld dot com>
- Date: Mon, 5 Feb 2001 15:33:10 -0000
VxWorks does its own .init/.fini handling, and so it wants the static
object constructors to a) be public functions and b) have $ signs in them.
diff -c3prN /gcc.orig/gcc/gcc/config/rs6000/vxppc.h
/gcc.dev/gcc/gcc/config/rs6000/vxppc.h
*** /gcc.orig/gcc/gcc/config/rs6000/vxppc.h Mon May 17 02:30:56 1999
--- /gcc.dev/gcc/gcc/config/rs6000/vxppc.h Mon Jan 29 23:41:20 2001
*************** Boston, MA 02111-1307, USA. */
*** 69,73 ****
--- 69,88 ----
#define ENDFILE_SPEC ""
/* We use stabs-in-elf for debugging */
+
#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
+
+ /* More backward compatibility patches: we undef these two in
+ order to force the compiler to output our static constructors
+ and destructors in the fashion to which it is accustomed.... */
+
+ #undef ASM_OUTPUT_CONSTRUCTOR
+ #undef ASM_OUTPUT_DESTRUCTOR
+
+ /* And this puts $ signs into the static object c/d-tors that
+ need to be found by WRS munch. It also makes libgcc symbols
+ match WRS symbols */
+
+ #undef NO_DOLLAR_IN_LABEL
+