This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[m68k] Fix linking for binaries using -mid-shared-library
- From: Bernardo Innocenti <bernie at develer dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Henderson <rth at redhat dot com>
- Date: Fri, 26 Dec 2003 17:55:41 +0100
- Subject: [m68k] Fix linking for binaries using -mid-shared-library
- Organization: Develer S.r.l.
Hello,
without this, bootstrap fails in libstdc++'s configure script for
multilib subdirs using the -mid-shared-library option.
OK for mainline?
2003-12-26 Bernardo Innocenti <bernie@develer.com>
* config/m68k/uclinux.h (LIB_SPEC): Add elf2flt magic required for
correct linking of executables using id-based shared libraries.
--- gcc-3.4-20031217.orig/gcc/config/m68k/uclinux.h 2003-12-24 16:04:08.453819503 +0100
+++ gcc-3.4-20031217/gcc/config/m68k/uclinux.h 2003-12-24 16:03:39.512825760 +0100
@@ -30,7 +30,7 @@
profiling, or libg.a. */
#undef LIB_SPEC
#define LIB_SPEC "\
-%{mid-shared-library:-R libc.gdb%s} -lc \
+%{mid-shared-library:-R libc.gdb%s -elf2flt -shared-lib-id 0} -lc \
"
/* we don't want a .eh_frame section. */
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/