michael@0: #/bin/sh michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # script to change the system id in an object file from PA-RISC 2.0 to 1.1 michael@0: michael@0: adb -w $1 << EOF michael@0: ?m 0 -1 0 michael@0: 0x0?X michael@0: 0x0?W (@0x0&~0x40000)|(~@0x0&0x40000) michael@0: michael@0: 0?"change checksum" michael@0: 0x7c?X michael@0: 0x7c?W (@0x7c&~0x40000)|(~@0x7c&0x40000) michael@0: $q michael@0: EOF michael@0: michael@0: exit 0 michael@0: