Browse Source

Add common part of linker scripts to a file and make use of it

Peter S. Mazinger 19 years ago
parent
commit
0defd6e9a9
2 changed files with 4 additions and 3 deletions
  1. 3 0
      extra/scripts/format.lds
  2. 1 3
      libc/Makefile.in

+ 3 - 0
extra/scripts/format.lds

@@ -0,0 +1,3 @@
+/* GNU ld script
+ * Use the shared library, but some functions are only in
+ * the static library, so try that secondarily. */

+ 1 - 3
libc/Makefile.in

@@ -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