source: patches/binutils-2.18-posix-1.patch@ a4819ed

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since a4819ed was 6267f3b, checked in by Jim Gifford <clfs@…>, 17 years ago

Updated to Binutils 2.18.

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[69cde8d]1Submitted By: Jim Gifford (patches at jg555 dot com)
[6267f3b]2Date: 2007-09-01
3Initial Package Version: 2.18
[69cde8d]4Origin: http://ttervo.vectorstar.net/nptl/posix-patches/binutils-2.14.90.0.7-posix-head-tail.patch
5Upstream Status: Accepted/but Suspended
6Description: Makes Posix Compliant
7
[6267f3b]8diff -Naur binutils-2.18.orig/gas/Makefile.am binutils-2.18/gas/Makefile.am
9--- binutils-2.18.orig/gas/Makefile.am 2007-08-28 10:19:35.000000000 -0700
10+++ binutils-2.18/gas/Makefile.am 2007-09-01 11:36:26.000000000 -0700
11@@ -791,13 +791,13 @@
[69cde8d]12 against=stage2
13
14 # This rule is derived from corresponding code in the Makefile.in for gcc.
15-# The "tail +16c" is to bypass headers which may include timestamps or
16+# The "tail -c +16" is to bypass headers which may include timestamps or
17 # temporary assembly file names.
18 comparison:
19 x=0 ; \
20 for file in *.o ; do \
21- tail +16c ./$$file > tmp-foo1; \
22- if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
23+ tail -c +16 ./$$file > tmp-foo1; \
24+ if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \
25 if cmp tmp-foo1 tmp-foo2 ; then \
26 true ; \
27 else \
[6267f3b]28diff -Naur binutils-2.18.orig/gas/Makefile.in binutils-2.18/gas/Makefile.in
29--- binutils-2.18.orig/gas/Makefile.in 2007-08-28 10:19:35.000000000 -0700
30+++ binutils-2.18/gas/Makefile.in 2007-09-01 11:36:26.000000000 -0700
31@@ -2763,13 +2763,13 @@
[69cde8d]32 if [ -f stage3/as-new$(EXEEXT) -a ! -f stage3/as$(EXEEXT) ] ; then (cd stage3 ; ln -s as-new as$(EXEEXT)) ; fi
33
34 # This rule is derived from corresponding code in the Makefile.in for gcc.
35-# The "tail +16c" is to bypass headers which may include timestamps or
36+# The "tail -c +16" is to bypass headers which may include timestamps or
37 # temporary assembly file names.
38 comparison:
39 x=0 ; \
40 for file in *.o ; do \
41- tail +16c ./$$file > tmp-foo1; \
42- if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
43+ tail -c +16 ./$$file > tmp-foo1; \
44+ if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \
45 if cmp tmp-foo1 tmp-foo2 ; then \
46 true ; \
47 else \
[6267f3b]48diff -Naur binutils-2.18.orig/ld/testsuite/ld-bootstrap/bootstrap.exp binutils-2.18/ld/testsuite/ld-bootstrap/bootstrap.exp
49--- binutils-2.18.orig/ld/testsuite/ld-bootstrap/bootstrap.exp 2007-08-06 13:00:23.000000000 -0700
50+++ binutils-2.18/ld/testsuite/ld-bootstrap/bootstrap.exp 2007-09-01 11:36:26.000000000 -0700
51@@ -152,8 +152,8 @@
[69cde8d]52 # Although this works, a way to set the date would be better.
53 # Removing or zeroing the date stamp in the binary produced by
54 # the linker is not possible as it is required by the target OS.
55- exec tail +140 tmpdir/ld2 >tmpdir/ld2tail
56- exec tail +140 tmpdir/ld3 >tmpdir/ld3tail
57+ exec tail -n +140 tmpdir/ld2 >tmpdir/ld2tail
58+ exec tail -n +140 tmpdir/ld3 >tmpdir/ld3tail
59 catch "exec cmp tmpdir/ld2tail tmpdir/ld3tail" exec_output
60 exec rm tmpdir/ld2tail tmpdir/ld3tail
61 } else {
[6267f3b]62diff -Naur binutils-2.18.orig/src-release binutils-2.18/src-release
63--- binutils-2.18.orig/src-release 2007-08-12 12:04:26.000000000 -0700
64+++ binutils-2.18/src-release 2007-09-01 11:36:38.000000000 -0700
65@@ -73,7 +73,7 @@
[69cde8d]66 elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
67 sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
68 elif test -f $(TOOL)/version.in; then \
69- head -1 $(TOOL)/version.in; \
70+ head -n 1 $(TOOL)/version.in; \
71 elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
72 sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
73 else \
Note: See TracBrowser for help on using the repository browser.