I subsequently found that the tools I'm looking at are smart enough to
recognize an "other-endian" COFF file and swap the relevant bytes. (Hint:
the magic number is a short containing different bytes.)

One person suggested conv(1), which seems to be BSDish (I don't have it on
HP-UX). If it's a generic "byte-swap the entire file" tool, it won't
work, since 1) it won't know whether to swap 2 or 4 bytes, and 2) it will
try to byte-swap the "raw" parts of the file (i.e. those written in a
fixed byte order).

Chris Eich
Hewlett-Packard
[Actually, conv is a Sys V program that swaps the byte order in COFF files
and also can convert archive formats and the like. -John]
--