source: patches/binutils-2.17-posix-1.patch@ 7faa492

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 7faa492 was 422c699, checked in by Jim Gifford <clfs@…>, 18 years ago

Updated to Binutils 2.17

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

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2005-05-06
    Initial Package Version: 2.16
    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
    	     Rediffed against 2.16 by Jeremy Huntwork
    
    diff -Naur binutils-2.16-ORIG/gas/Makefile.am binutils-2.16/gas/Makefile.am
    old new  
    762762against=stage2
    763763
    764764# This rule is derived from corresponding code in the Makefile.in for gcc.
    765 # The "tail +16c" is to bypass headers which may include timestamps or
     765# The "tail -c +16" is to bypass headers which may include timestamps or
    766766# temporary assembly file names.
    767767comparison:
    768768        x=0 ; \
    769769        for file in *.o ; do \
    770           tail +16c ./$$file > tmp-foo1; \
    771           if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
     770          tail -c +16 ./$$file > tmp-foo1; \
     771          if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \
    772772            if cmp tmp-foo1 tmp-foo2 ; then \
    773773              true ; \
    774774            else \
  • gas/Makefile.in

    diff -Naur binutils-2.16-ORIG/gas/Makefile.in binutils-2.16/gas/Makefile.in
    old new  
    31643164        if [ -f stage3/as-new$(EXEEXT) -a ! -f stage3/as$(EXEEXT) ] ; then (cd stage3 ; ln -s as-new as$(EXEEXT)) ; fi
    31653165
    31663166# This rule is derived from corresponding code in the Makefile.in for gcc.
    3167 # The "tail +16c" is to bypass headers which may include timestamps or
     3167# The "tail -c +16" is to bypass headers which may include timestamps or
    31683168# temporary assembly file names.
    31693169comparison:
    31703170        x=0 ; \
    31713171        for file in *.o ; do \
    3172           tail +16c ./$$file > tmp-foo1; \
    3173           if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
     3172          tail -c +16 ./$$file > tmp-foo1; \
     3173          if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \
    31743174            if cmp tmp-foo1 tmp-foo2 ; then \
    31753175              true ; \
    31763176            else \
  • ld/testsuite/ld-bootstrap/bootstrap.exp

    diff -Naur binutils-2.16-ORIG/ld/testsuite/ld-bootstrap/bootstrap.exp binutils-2.16/ld/testsuite/ld-bootstrap/bootstrap.exp
    old new  
    149149        # Although this works, a way to set the date would be better.
    150150        # Removing or zeroing the date stamp in the binary produced by
    151151        # the linker is not possible as it is required by the target OS.
    152         exec tail +140 tmpdir/ld2 >tmpdir/ld2tail
    153         exec tail +140 tmpdir/ld3 >tmpdir/ld3tail
     152        exec tail -n +140 tmpdir/ld2 >tmpdir/ld2tail
     153        exec tail -n +140 tmpdir/ld3 >tmpdir/ld3tail
    154154        catch "exec cmp tmpdir/ld2tail tmpdir/ld3tail" exec_output
    155155        exec rm tmpdir/ld2tail tmpdir/ld3tail
    156156    } else {
  • binutils-2.

    diff -Naur binutils-2.16-ORIG/ltcf-c.sh binutils-2.16/ltcf-c.sh
    old new  
    153153    # If the export-symbols file already is a .def file (1st line
    154154    # is EXPORTS), use it as is.
    155155    # If DATA tags from a recent dlltool are present, honour them!
    156     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
     156    archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
    157157        cp $export_symbols $output_objdir/$soname-def;
    158158      else
    159159        echo EXPORTS > $output_objdir/$soname-def;
  • ltcf-gcj.sh

    diff -Naur binutils-2.16-ORIG/ltcf-gcj.sh binutils-2.16/ltcf-gcj.sh
    old new  
    156156    # If the export-symbols file already is a .def file (1st line
    157157    # is EXPORTS), use it as is.
    158158    # If DATA tags from a recent dlltool are present, honour them!
    159     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
     159    archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
    160160        cp $export_symbols $output_objdir/$soname-def;
    161161      else
    162162        echo EXPORTS > $output_objdir/$soname-def;
  • src-release

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