1#/bin/sh
2#
3# This Source Code Form is subject to the terms of the Mozilla Public
4# License, v. 2.0. If a copy of the MPL was not distributed with this
5# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7# script to change the system id in an object file from PA-RISC 2.0 to 1.1
8
9adb -w $1 << EOF
10?m 0 -1 0
110x0?X
120x0?W (@0x0&~0x40000)|(~@0x0&0x40000)
13
140?"change checksum"
150x7c?X
160x7c?W (@0x7c&~0x40000)|(~@0x7c&0x40000)
17$q
18EOF
19
20exit 0
21
22