This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v2 0/3] binutils: read from stdin if input file is -


Changes behavior of dlltool, nlmconv, nm, objcopy, objdump and size
to allow niftiness like:

   printf "\xCC" | objdump -D -bbinary -mi386 -

Copyright assignment is in place. Tests have been added for nm,
objcopy, objdump and size.

--

Changes since v1:
 * Documented new behavior in NEWS and man pages
 * Added tests for nm, objcopy, objdump and size
 * Replaced XDELETEVEC() with free()

bfd/
   * bfd.c (struct bfd): Add optional temp_filename field that points
     at file to be removed when closing bfd.
   * bfd-in2.h: Regenerate.
   * opencls.c (bfd_open): read stdin if filename == NULL
binutils/
   * nm.c:      const-qualify read-only string parameters
   * nm.c:      read from stdin if input file is -
   * dlltool.c: Likewise
   * nlmconv.c: Likewise
   * objcopy.c: Likewise
   * objdump.c: Likewise
   * size.c:    Likewise
binutils/testsuite/config/
   * default.exp (binutils_run): Allow passing extra arguments to
     remote_exec
binutils/testsuite/lib/
   * lib/utils-lib.exp (default_binutils_run): Likewise
binutils/testsuite/binutils-all/
   * nm.exp:      Add test for reading from stdin
   * objcopy.exp: Likewise
   * objdump.exp: Likewise
   * size.exp:    Likewise

Ahmad Fatoum (3):
  bfd_fopen: read from stdin if filename == NULL
  nm: const-qualify read-only string parameters
  binutils: read from stdin if input file is -

 bfd/bfd-in2.h                               |  3 ++
 bfd/bfd.c                                   |  3 ++
 bfd/opncls.c                                | 66 ++++++++++++++++++++++++++---
 binutils/NEWS                               |  3 ++
 binutils/dlltool.c                          |  9 +++-
 binutils/doc/binutils.texi                  | 36 ++++++++++------
 binutils/nlmconv.c                          |  5 ++-
 binutils/nm.c                               | 56 +++++++++++++-----------
 binutils/objcopy.c                          | 38 +++++++++++++----
 binutils/objdump.c                          | 10 ++++-
 binutils/size.c                             | 10 ++++-
 binutils/testsuite/binutils-all/nm.exp      | 57 ++++++++++++++-----------
 binutils/testsuite/binutils-all/objcopy.exp | 13 +++++-
 binutils/testsuite/binutils-all/objdump.exp |  8 +++-
 binutils/testsuite/binutils-all/size.exp    | 45 ++++++++++++--------
 binutils/testsuite/config/default.exp       |  4 +-
 binutils/testsuite/lib/utils-lib.exp        |  5 ++-
 17 files changed, 262 insertions(+), 109 deletions(-)

-- 
2.16.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]