AminetAminet
Search:
84782 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/misc/StripHunks.lha

Mirror:Random
Showing: i386-aros icongeneric icon
No screenshot available
Short:V1.9 CLI tool to strip useless hunks
Author: stoecker at amigaworld.com (Dirk Stoecker)
Uploader:stoecker amigaworld com (Dirk Stoecker)
Type:util/misc
Version:1.9
Architecture:m68k-amigaos
Date:2000-04-02
Download:util/misc/StripHunks.lha - View contents
Readme:util/misc/StripHunks.readme
Downloads:719

This program removes most time useless parts of executable files:
  - HUNK_DEBUG hunks
  - HUNK_SYMBL hunks
  - HUNK_NAME hunks
  - empty HUNK_RELOC32, HUNK_DREL32 and HUNK_RELOC32SHORT
  - empty DATA/CODE/BSS hunks, when it is the last hunk

When there are empty hunks at other places than the last one, you get a
short information.

Use it with care! Sometimes the files will not work after stripping these
hunks, so test it.

SYNOPSIS:  StripHunks FILES/M,ONLYSHOW/S,ALL/S,SORT=SORTRELOC/S,NOSTRIP/S,
                      NSE=NOSTRIPEMPTY/S,NSN=NOSTRIPNAME/S,
                      NSD=NOSTRIPDEBUG/S,NSS=NOSTRIPSYMBOL/S,
                      NSR=NOSTRIPRELOC/S,SBW=SORTBACKWARDS/S,
                      NSO=NOSORTONLY/S:

FILES:	  The file/files which should be processed. Wildcards are supported.
ONLYSHOW: The program does not save the stripped files back to disk.
ALL:      Scan sub directories as well.
SORT:     Sorts relocation entries from lower to higher values. This may
          save space on older programs, as they sometimes have splitted
          relocation entries.
NOSTRIP:  Disables all stripping.
NSE:      EMPTY hunks are not stripped.
NSN:      NAME hunks are not stripped.
NSD:      DEBUG hunks are not stripped.
NSS:      SYMBOL hunks are not stripped.
NSR:      RELOC information is not stripped.
SBW:      With SORT keyword reloc is sorted from highest to lowest number.
NSO:	  Does ignore SORT option for files, which get not shorter.

Files with unknown structure show a warning and are not processed. Non
executable files are ignored.

NOTE: It may destroy files to strip EMPTY, DEBUG or SYMBOL hunks, but it
should work for lot of files. I do not know files, where stripping NAME
hunks or relocation information caused errors.
Sorting the relocation entries should not produce any problems as well,
but it is useful to compare two files byte for byte, as some crunchers
sort relocation information as well.

Please report me bugs, comments, suggestions and problems. If possible
write a little mail if you use the program sometimes. If there are some
Enforcer hits or other problems report them as good as possible.

Use it as you want, but WITHOUT ANY WARRANTY!

Please contact me:

************************************************************************
* snail-mail:                  * e-mail:                               *
*   Dirk Stoecker              *   stoecker@amigaworld.com             *
*   Geschwister-Scholl-Str. 10 *   dstoecker@gmx.de                    *
*   01877 Bischofswerda        * world wide web:                       *
*   GERMANY                    *   http://home.pages.de/~stoecker/     *
* phone:                       * pgp key:                              *
*   GERMANY +49 (0)3594/706666 *   get with finger or from WWW pages   *
************************************************************************


Contents of util/misc/StripHunks.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 1568    3567  44.0% -lh5- 60d6 Apr  1  2000 Source/SDI_defines.h
[generic]                 4058   16395  24.8% -lh5- b36a Apr  1  2000 Source/StripHunks.c
[generic]                 2453    4064  60.4% -lh5- 7bc4 Apr  1  2000 StripHunks
[generic]                 1310    3060  42.8% -lh5- f7eb Apr  1  2000 StripHunks.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         4 files    9389   27086  34.7%            Apr  2  2000
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>