From a0cfeb0fcd3953ba10886a4a5d2b33b9d4bd1d7d Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 15 May 2006 23:49:57 -0400 Subject: crtstuff.c (__dso_handle): Set section from TARGET_LBIGCC_SDATA_SECTION if defined. * crtstuff.c (__dso_handle): Set section from TARGET_LBIGCC_SDATA_SECTION if defined. * doc/tm.text (TARGET_LIBGCC_SDATA_SECTION): Document. * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define. From-SVN: r113817 --- gcc/crtstuff.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/crtstuff.c') diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index cde7557..8fdc021 100644 --- a/gcc/crtstuff.c +++ b/gcc/crtstuff.c @@ -225,6 +225,9 @@ STATIC void *__JCR_LIST__[] in one DSO or the main program is not used in another object. The dynamic linker takes care of this. */ +#ifdef TARGET_LIBGCC_SDATA_SECTION +extern void *__dso_handle __attribute__ ((__section__ (TARGET_LIBGCC_SDATA_SECTION))); +#endif #ifdef HAVE_GAS_HIDDEN extern void *__dso_handle __attribute__ ((__visibility__ ("hidden"))); #endif -- cgit v1.1