OSDN Git Service

Add common part of linker scripts to a file and make use of it
authorPeter S. Mazinger <ps.m@gmx.net>
Thu, 9 Mar 2006 12:05:25 +0000 (12:05 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Thu, 9 Mar 2006 12:05:25 +0000 (12:05 -0000)
extra/scripts/format.lds [new file with mode: 0644]
libc/Makefile.in

diff --git a/extra/scripts/format.lds b/extra/scripts/format.lds
new file mode 100644 (file)
index 0000000..c20212e
--- /dev/null
@@ -0,0 +1,3 @@
+/* GNU ld script
+ * Use the shared library, but some functions are only in
+ * the static library, so try that secondarily. */
index e9aa8a6..cf1be4a 100644 (file)
@@ -63,9 +63,7 @@ $(libc:.$(MAJOR_VERSION)=): $(libc_OUT)/libc.oS $(libc-nomulti-y:.o=.oS) | $(LIB
        $(call linkm.so,$(libc_FULL_NAME),$(MAJOR_VERSION))
 endif
        $(Q)$(RM) $@
-       $(Q)echo "/* GNU ld script" > $@
-       $(Q)echo " * Use the shared library, but some functions are only in" >> $@
-       $(Q)echo " * the static library, so try that secondarily. */" >> $@
+       $(Q)cp $(top_srcdir)extra/scripts/format.lds $@
 ifeq ($(COMPAT_ATEXIT),y)
        $(Q)echo "GROUP ( $(NONSHARED_LIBNAME) $(SHARED_MAJORNAME) $(ASNEEDED) )" >> $@
 else