Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!pyramid!mowat From: mowat@pyrshadow (Eric Mowat) Newsgroups: comp.unix.aix Subject: Re: Q: Patching Binaries under AIX 1.1 Summary: patching binaries in AIX 1.1 Message-ID: <97241@pyramid.pyramid.com> Date: 5 Jan 90 20:52:57 GMT Sender: daemon@pyramid.pyramid.com Lines: 25 In article <6693@columbia.edu>, ji@close.cs.columbia.edu (John Ioannidis) writes: > Does anyone have adb for AIX 1.1? I need to be able to patch things in > the running kernel, and also patch the unix executable, and the only > thing I know that can do both is adb (superzap was never ported to the > Unix world :-) ). Why oh why did the powers-that-be remove adb from the > distribution? > Adb was removed from AIX 1.1 because the only version Locus had contained AT&T code. Fortunately there is a workaround. Use ldminit. It is contained in /usr/sys/bin. Say you want to patch the variable flpdebug in the kernel. Edit a file and insert the following line: flpdebug:1:4: and run: ldminit -c -l /local/ This will set the variable flpdebug to 1. The 4 means that the variable is 4 bytes long. You can also use ldminit to patch the running system as well as the binary, provided you have permissions of course. The -p option will patch /dev/kmem as well. Eric Mowat mowat@pyrshadow.pyramid.com