Short: V1.9 CLI tool to strip useless hunks Uploader: stoecker@amigaworld.com (Dirk Stoecker) Author: stoecker@amigaworld.com (Dirk Stoecker) Type: util/misc Version: 1.9 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 * ************************************************************************