home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / programm / 5299 < prev    next >
Encoding:
Text File  |  1992-11-16  |  4.4 KB  |  114 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!das.wang.com!wang!pvr
  3. From: pvr@wang.com ()
  4. Subject: Re: Modifying binary file
  5. Organization: Wang Labs, Lowell MA, USA
  6. Date: Mon, 16 Nov 1992 16:52:20 GMT
  7. Message-ID: <BxtIv9.CCL@wang.com>
  8. References: <1992Nov11.224541.10311@bellahs.com>
  9. Sender: news@wang.com
  10. Nntp-Posting-Host: preilley.wiis.wang.com
  11. Lines: 101
  12.  
  13. jjamison@bellahs.com (John Jamison RD AC) writes:
  14.  
  15. >I'd like to be able to "patch" a binary image after it has been linked by ld.
  16. >What are some possible strategies for doing this? I'm envisioning patching the
  17. >image in order to subtitute a "version number" and "link date/time" into the 
  18. >image.
  19.  
  20.     If you want to do it by hand you could try BEAV.   If you want
  21. to have some automated way of doing it you could write a macro
  22. in BEAV or write a C program.   The following is my standard advertisment
  23. for BEAV;
  24.  
  25.     BEAV (Binary Editor And Viewer), is a full featured binary file 
  26. editor.      Just about any operation that you could want to do to a binary 
  27. file is possible with BEAV.   You can insert or delete in the middle of 
  28. a file thereby changing it's size.   You can edit multiple files in 
  29. multiple windows and cut and paste between them.   You can display and 
  30. edit data in hex, octal, decimal, binary, ascii, or ebcdic formats.   You 
  31. can display data in byte, word, or long word formats in either Intel or 
  32. Motorola byte ordering.   You can send the formatted display mode to a 
  33. file or printer.
  34.  
  35.     BEAV is based on the source for emacs for display and keyboard handling 
  36. functions.   The binary file handling and display formats are special
  37. to BEAV.   There is a full manual included in this release.   There
  38. are makefiles for unix, xenix 286, AmigaDOS, and MSC 5.1 under DOS.   The 
  39. old Wang PC is supported.   This has been tested on 286 and 386 PC's under 
  40. SCO UNIX and XENIX and AIX on a RS6000.   There are a number of makefiles 
  41. included, select the appropriate one and rename it to makefile.
  42.  
  43.     BEAV is available various archives, on WSMR-SIMTEL20.ARMY.MIL it is;
  44.  
  45.     PD1:<MDSOS.FILUTL>BEAV133.ZIP    MSDOS executable and doc
  46.  
  47.     PD1:<MDSOS.FILUTL>BEAV133S.ZIP    source and doc
  48.  
  49.  
  50.       Version 1.33 (8/9/92) of BEAV contains the following
  51. enhancements;
  52.  
  53. *            A new command, screen-rows, allows you to change the
  54.       number of rows BEAV uses in the current screen.   The command
  55.       can be issued anytime, the current windows will be adjusted
  56.       or killed as necessary.
  57.  
  58. *            Floating point numbers can be displayed.
  59.  
  60. *            BEAV uses the current screen color setting and does
  61.       not change them on exiting.   Thanks to Derek Millar,
  62.       dmillar@ocf.berkeley.edu
  63.  
  64. *            The processing of the beavrc file has been enhanced
  65.       to allow the processing of most commands.
  66.  
  67. *            The default key binding for "n-way-combine" command 
  68.       has been changed to ESC Ctl P.   This makes ESC Ctl F 
  69.       available for the "display-float" command.
  70.  
  71. *           The copy-mark-to-cursor command would corrupt data if
  72.       the region to be copied was greater than 4096 bytes.   This
  73.       is fixed.
  74.  
  75. *           The replace command would fail to find all occurances
  76.       of a search pattern if the pattern fell on the boundary of
  77.       certain internal data structures.   This is fixed.
  78.  
  79. *           The memory used to handle screen images is now
  80.       allocated at load time rather than staticaly allocated.
  81.       This will allow systems with any screen size to be filled.
  82.       This depends on the variable "nrow" being properly set by
  83.       whatever terminal output file you have configured.   The
  84.       default for "nrow" is the #define "NROW" as set in the
  85.       def.h file.   The colunms remain fixed at 80.
  86.  
  87. *           Under Unix, BEAV will use the full screen as reported
  88.       by the ioctl inquiry of the tty device.   Previously, the
  89.       bottom line was not used.
  90.  
  91. *           The prompt line is now erased properly.
  92.  
  93. *           Not new to this release, but important for foreign
  94.       language users.   All English text in BEAV is contained in
  95.       the file "text.c".   It should be relatively easy to
  96.       translate and recompile.   If someone wants to send me a
  97.       translated version of "text.c", I will include it in my
  98.       next release.
  99.  
  100.  
  101.     I am willing to maintain BEAV and will entertain suggestions for
  102. modifications and/or bug fixes.   I can be reached at;
  103.  
  104.         pvr@wiis.wang.com
  105.  
  106. or at;
  107.  
  108.         Peter Reilley
  109.         19 Heritage Cir.
  110.         Hudson, N.H. 03051
  111. --
  112. >>>>>>>>>>>> Peter Reilley ..... pvr@wiis.wang.com ..... KA1LAT <<<<<<<<<<<<<
  113.                      Well, that about says it.
  114.