From: Alan Modra Date: Tue, 27 Feb 2007 08:31:46 +0000 (+0000) Subject: * bin2c.c: New file. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd14b9662a90756a8dc0f465ae1e16c6d3b216da;p=binutils-gdb.git * bin2c.c: New file. * Makefile.am (EXTRA_PROGRAMS): Add bin2c. (CFILES): Add bin2c.c. (bin2c_SOURCES): Define. (bin2c.o): Dependencies from "make dep-am". * configure.in (BUILD_MISC): Add bin2c. * version.c: Update year. * po/POTFILES.in: Regenerate. * Makefile.in: Regenerate. * configure: Regenerate. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 2b3ed49f6fd..6116e416ef1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,16 @@ +2007-02-27 Alan Modra + + * bin2c.c: New file. + * Makefile.am (EXTRA_PROGRAMS): Add bin2c. + (CFILES): Add bin2c.c. + (bin2c_SOURCES): Define. + (bin2c.o): Dependencies from "make dep-am". + * configure.in (BUILD_MISC): Add bin2c. + * version.c: Update year. + * po/POTFILES.in: Regenerate. + * Makefile.in: Regenerate. + * configure: Regenerate. + 2007-02-17 Mark Mitchell Nathan Sidwell Vladimir Prus output_file\n"), argv[0]); + fprintf (stream, _("Prints bytes from stdin in hex format.\n")); + exit (!ishelp); + } + + SET_BINARY (fileno (stdin)); + + i = 0; + while ((c = getc (stdin)) != EOF) + { + printf ("0x%02x,", c); + if (++i == 16) + { + printf ("\n"); + i = 0; + } + } + if (i != 0) + printf ("\n"); + + exit (0); +} diff --git a/binutils/configure b/binutils/configure index bf7cfbad3cb..f2b898c5575 100755 --- a/binutils/configure +++ b/binutils/configure @@ -8630,6 +8630,7 @@ do BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' BUILD_SRCONV='$(SRCONV_PROG)' NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC" + BUILD_MISC="${BUILD_MISC} bin2c" else case $targ in i[3-7]86*-*-netware*) @@ -8724,7 +8725,7 @@ do BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' ;; powerpc*-*-linux* | powerpc*-*-elf*) - BUILD_MISC=embedspu + BUILD_MISC="${BUILD_MISC} embedspu" ;; sh*-*-pe) BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' @@ -8734,6 +8735,9 @@ do DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH" BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' ;; + spu-*-*) + BUILD_MISC="${BUILD_MISC} bin2c" + ;; mips*-*-pe) BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' if test -z "$DLLTOOL_DEFAULT"; then diff --git a/binutils/configure.in b/binutils/configure.in index 2ab4a38c6e0..39d0ace887d 100644 --- a/binutils/configure.in +++ b/binutils/configure.in @@ -233,6 +233,7 @@ do BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' BUILD_SRCONV='$(SRCONV_PROG)' NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC" + BUILD_MISC="${BUILD_MISC} bin2c" else case $targ in changequote(,)dnl @@ -335,7 +336,7 @@ changequote([,])dnl BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' ;; powerpc*-*-linux* | powerpc*-*-elf*) - BUILD_MISC=embedspu + BUILD_MISC="${BUILD_MISC} embedspu" ;; sh*-*-pe) BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' @@ -345,6 +346,9 @@ changequote([,])dnl DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH" BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' ;; + spu-*-*) + BUILD_MISC="${BUILD_MISC} bin2c" + ;; mips*-*-pe) BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' if test -z "$DLLTOOL_DEFAULT"; then diff --git a/binutils/po/POTFILES.in b/binutils/po/POTFILES.in index d3f6cb3fa7c..c4b06d2bb28 100644 --- a/binutils/po/POTFILES.in +++ b/binutils/po/POTFILES.in @@ -2,6 +2,7 @@ addr2line.c ar.c arsup.c arsup.h +bin2c.c binemul.c binemul.h bucomm.c diff --git a/binutils/version.c b/binutils/version.c index 2843e69f06b..9831416e366 100644 --- a/binutils/version.c +++ b/binutils/version.c @@ -32,7 +32,7 @@ print_version (const char *name) /* This output is intended to follow the GNU standards document. */ /* xgettext:c-format */ printf ("GNU %s %s\n", name, BFD_VERSION_STRING); - printf (_("Copyright 2005 Free Software Foundation, Inc.\n")); + printf (_("Copyright 2007 Free Software Foundation, Inc.\n")); printf (_("\ This program is free software; you may redistribute it under the terms of\n\ the GNU General Public License. This program has absolutely no warranty.\n"));