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

Last change on this file since 32f7ffc was 67300de, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Create a clfs-1.1 branch in preperation for a RC.

  • Property mode set to 100644
File size: 3.5 KB
  • gas/Makefile.am

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2007-09-01
    Initial Package Version: 2.18
    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.18.orig/gas/Makefile.am binutils-2.18/gas/Makefile.am
    old new  
    791791against=stage2
    792792
    793793# This rule is derived from corresponding code in the Makefile.in for gcc.
    794 # The "tail +16c" is to bypass headers which may include timestamps or
     794# The "tail -c +16" is to bypass headers which may include timestamps or
    795795# temporary assembly file names.
    796796comparison:
    797797        x=0 ; \
    798798        for file in *.o ; do \
    799           tail +16c ./$$file > tmp-foo1; \
    800           if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
     799          tail -c +16 ./$$file > tmp-foo1; \
     800          if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \
    801801            if cmp tmp-foo1 tmp-foo2 ; then \
    802802              true ; \
    803803            else \
  • gas/Makefile.in

    diff -Naur binutils-2.18.orig/gas/Makefile.in binutils-2.18/gas/Makefile.in
    old new  
    27632763        if [ -f stage3/as-new$(EXEEXT) -a ! -f stage3/as$(EXEEXT) ] ; then (cd stage3 ; ln -s as-new as$(EXEEXT)) ; fi
    27642764
    27652765# This rule is derived from corresponding code in the Makefile.in for gcc.
    2766 # The "tail +16c" is to bypass headers which may include timestamps or
     2766# The "tail -c +16" is to bypass headers which may include timestamps or
    27672767# temporary assembly file names.
    27682768comparison:
    27692769        x=0 ; \
    27702770        for file in *.o ; do \
    2771           tail +16c ./$$file > tmp-foo1; \
    2772           if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
     2771          tail -c +16 ./$$file > tmp-foo1; \
     2772          if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \
    27732773            if cmp tmp-foo1 tmp-foo2 ; then \
    27742774              true ; \
    27752775            else \
  • ld/testsuite/ld-bootstrap/bootstrap.exp

    diff -Naur binutils-2.18.orig/ld/testsuite/ld-bootstrap/bootstrap.exp binutils-2.18/ld/testsuite/ld-bootstrap/bootstrap.exp
    old new  
    152152        # Although this works, a way to set the date would be better.
    153153        # Removing or zeroing the date stamp in the binary produced by
    154154        # the linker is not possible as it is required by the target OS.
    155         exec tail +140 tmpdir/ld2 >tmpdir/ld2tail
    156         exec tail +140 tmpdir/ld3 >tmpdir/ld3tail
     155        exec tail -n +140 tmpdir/ld2 >tmpdir/ld2tail
     156        exec tail -n +140 tmpdir/ld3 >tmpdir/ld3tail
    157157        catch "exec cmp tmpdir/ld2tail tmpdir/ld3tail" exec_output
    158158        exec rm tmpdir/ld2tail tmpdir/ld3tail
    159159    } else {
  • binutils-2.18

    diff -Naur binutils-2.18.orig/src-release binutils-2.18/src-release
    old new  
    7373        elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
    7474          sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
    7575        elif test -f $(TOOL)/version.in; then \
    76           head -1 $(TOOL)/version.in; \
     76          head -n 1 $(TOOL)/version.in; \
    7777        elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
    7878          sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
    7979        else \
Note: See TracBrowser for help on using the repository browser.