tls613 pat - SCO UNIX Patching Tool - 97/08/28 version This TLS is a an ELF executable binary for UnixWare and OpenServer 5. (Also works on SVR5) It can be used to patch ELF and COFF executables and /dev/kmem. Invoke the program without arguments to obtain a usage message. Just uncompress tls613.Z, make it executable, and put it into a directory included in the superuser's PATH i.e.: # compress -dc /usr/sbin/pat # or put in /etc on OpenServer? # chmod +x /usr/sbin/pat Usage: pat [-trn] binfile sym[+hexoffset] oldhex [= newhex] [sym2...] oldhex and newhex may be in bytes (e.g. b0 b1 b2 00), in shorts (e.g. b1b0 00b2) or in longs (e.g. 00b2b1b0); with . for a wildcard digit (e.g. in embedded addresses). No = newhex patches are made unless all the oldhex matches. -t pretends to patch, for testing pat scripts without writing; -r reverses direction of patches (oldhex<->newhex), to remove; -n patches kmem not binfile. 0xhex for sym avoids sym lookup, otherwise binfile is ELF or COFF object, archive or executable. Exit 0 for success (oldhex matched, newhex patched); 1 newhex match; 2 mismatch; 3 symbol error; 4 file error; 5 bad syntax.