r929 - trunk/binutils

jim at linuxfromscratch.org jim at linuxfromscratch.org
Sun Apr 24 16:56:22 PDT 2005


Author: jim
Date: 2005-04-24 17:56:21 -0600 (Sun, 24 Apr 2005)
New Revision: 929

Added:
   trunk/binutils/binutils-2.15.94.0.2.2-posix-1.patch
Log:
Added: binutils-2.15.94.0.2.2-posix-1.patch

Added: trunk/binutils/binutils-2.15.94.0.2.2-posix-1.patch
===================================================================
--- trunk/binutils/binutils-2.15.94.0.2.2-posix-1.patch	2005-04-24 23:45:56 UTC (rev 928)
+++ trunk/binutils/binutils-2.15.94.0.2.2-posix-1.patch	2005-04-24 23:56:21 UTC (rev 929)
@@ -0,0 +1,97 @@
+Submitted By: Jim Gifford (patches at jg555 dot com)
+Date: 2005-04-24
+Initial Package Version: 2.15.94.0.2.2
+Origin: http://ttervo.vectorstar.net/nptl/posix-patches/binutils-2.14.90.0.7-posix-head-tail.patch
+Upstream Status: Accepted/but Suspended
+Description: Makes Posix Compliant
+ 
+diff -Naur binutils-2.15.94.0.2.2.orig/gas/Makefile.am binutils-2.15.94.0.2.2/gas/Makefile.am
+--- binutils-2.15.94.0.2.2.orig/gas/Makefile.am	2004-12-20 19:16:49.000000000 +0000
++++ binutils-2.15.94.0.2.2/gas/Makefile.am	2005-04-24 23:52:54.966243176 +0000
+@@ -761,13 +761,13 @@
+ against=stage2
+ 
+ # This rule is derived from corresponding code in the Makefile.in for gcc.
+-# The "tail +16c" is to bypass headers which may include timestamps or
++# The "tail -c +16" is to bypass headers which may include timestamps or
+ # temporary assembly file names.
+ comparison:
+ 	x=0 ; \
+ 	for file in *.o ; do \
+-	  tail +16c ./$$file > tmp-foo1; \
+-	  if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
++	  tail -c +16 ./$$file > tmp-foo1; \
++	  if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \
+ 	    if cmp tmp-foo1 tmp-foo2 ; then \
+ 	      true ; \
+ 	    else \
+diff -Naur binutils-2.15.94.0.2.2.orig/gas/Makefile.in binutils-2.15.94.0.2.2/gas/Makefile.in
+--- binutils-2.15.94.0.2.2.orig/gas/Makefile.in	2004-12-20 19:16:49.000000000 +0000
++++ binutils-2.15.94.0.2.2/gas/Makefile.in	2005-04-24 23:52:54.988239832 +0000
+@@ -3151,13 +3151,13 @@
+ 	if [ -f stage3/as-new$(EXEEXT) -a ! -f stage3/as$(EXEEXT) ] ; then (cd stage3 ; ln -s as-new as$(EXEEXT)) ; fi
+ 
+ # This rule is derived from corresponding code in the Makefile.in for gcc.
+-# The "tail +16c" is to bypass headers which may include timestamps or
++# The "tail -c +16" is to bypass headers which may include timestamps or
+ # temporary assembly file names.
+ comparison:
+ 	x=0 ; \
+ 	for file in *.o ; do \
+-	  tail +16c ./$$file > tmp-foo1; \
+-	  if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
++	  tail -c +16 ./$$file > tmp-foo1; \
++	  if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \
+ 	    if cmp tmp-foo1 tmp-foo2 ; then \
+ 	      true ; \
+ 	    else \
+diff -Naur binutils-2.15.94.0.2.2.orig/ld/testsuite/ld-bootstrap/bootstrap.exp binutils-2.15.94.0.2.2/ld/testsuite/ld-bootstrap/bootstrap.exp
+--- binutils-2.15.94.0.2.2.orig/ld/testsuite/ld-bootstrap/bootstrap.exp	2004-07-28 04:36:11.000000000 +0000
++++ binutils-2.15.94.0.2.2/ld/testsuite/ld-bootstrap/bootstrap.exp	2005-04-24 23:52:54.992239224 +0000
+@@ -149,8 +149,8 @@
+         # Although this works, a way to set the date would be better.
+         # Removing or zeroing the date stamp in the binary produced by
+         # the linker is not possible as it is required by the target OS.
+-        exec tail +140 tmpdir/ld2 >tmpdir/ld2tail
+-        exec tail +140 tmpdir/ld3 >tmpdir/ld3tail
++        exec tail -n +140 tmpdir/ld2 >tmpdir/ld2tail
++        exec tail -n +140 tmpdir/ld3 >tmpdir/ld3tail
+         catch "exec cmp tmpdir/ld2tail tmpdir/ld3tail" exec_output
+         exec rm tmpdir/ld2tail tmpdir/ld3tail
+     } else {
+diff -Naur binutils-2.15.94.0.2.2.orig/ltcf-c.sh binutils-2.15.94.0.2.2/ltcf-c.sh
+--- binutils-2.15.94.0.2.2.orig/ltcf-c.sh	2004-11-22 20:33:30.000000000 +0000
++++ binutils-2.15.94.0.2.2/ltcf-c.sh	2005-04-24 23:52:54.998238312 +0000
+@@ -153,7 +153,7 @@
+     # If the export-symbols file already is a .def file (1st line
+     # is EXPORTS), use it as is.
+     # If DATA tags from a recent dlltool are present, honour them!
+-    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
++    archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
+         cp $export_symbols $output_objdir/$soname-def;
+       else
+         echo EXPORTS > $output_objdir/$soname-def;
+diff -Naur binutils-2.15.94.0.2.2.orig/ltcf-gcj.sh binutils-2.15.94.0.2.2/ltcf-gcj.sh
+--- binutils-2.15.94.0.2.2.orig/ltcf-gcj.sh	2004-07-28 04:36:06.000000000 +0000
++++ binutils-2.15.94.0.2.2/ltcf-gcj.sh	2005-04-24 23:52:55.003237552 +0000
+@@ -156,7 +156,7 @@
+     # If the export-symbols file already is a .def file (1st line
+     # is EXPORTS), use it as is.
+     # If DATA tags from a recent dlltool are present, honour them!
+-    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
++    archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
+         cp $export_symbols $output_objdir/$soname-def;
+       else
+         echo EXPORTS > $output_objdir/$soname-def;
+diff -Naur binutils-2.15.94.0.2.2.orig/src-release binutils-2.15.94.0.2.2/src-release
+--- binutils-2.15.94.0.2.2.orig/src-release	2004-12-20 19:16:48.000000000 +0000
++++ binutils-2.15.94.0.2.2/src-release	2005-04-24 23:52:55.006237096 +0000
+@@ -69,7 +69,7 @@
+ 	elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
+ 	  sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
+ 	elif test -f $(TOOL)/version.in; then \
+-	  head -1 $(TOOL)/version.in; \
++	  head -n 1 $(TOOL)/version.in; \
+ 	elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
+ 	  sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
+ 	else \




More information about the patches mailing list