Post by email@example.com
I'm trying to decode a binary built with WATCOM Linker 10.6 for QNX 4.
You could try the wdump utility. At least it mentions QNX
Open Watcom Executable Image Dump Utility Version 1.9
Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
Usage: wdump [-?abdefipqrsx] [-A<num>] [-B<off>] [-D<opt>] [-S<num>] <file>
<file> is a DOS EXE file, a Windows or OS/2 executable or DLL,
a PharLap executable, NLM, a QNX executable,
an ELF executable, shared library or object file,
or a COFF object.
-a causes all segment, resource and fixup info to be dumped
-A<segnum> like -a but only applies to segment <segnum>
-b causes binary dump of the entire file
-B<hexoff> causes binary dump beginning at offset in hex
-d causes debugging information to be dumped
-D<opts> controls debugging information to be dumped
a : show addr infomation
g : show global infomation
l : show locals (only if m specified)
m : show module informatiom
n : show line numbers (only if m specified)
t : show types (only if m specified)
x : show all information
-e causes executable information to be dumped as well
-f causes fixup information to be dumped
-i dump export information for PE DLLs
-p causes LE/LX page map to be dumped
-q quiet dump - don't write banner
-r causes more resource information to be dumped
-s causes segments' data to be dumped
-S<segnum> like -s but only applies to segment <segnum>
-x dump export information for NE/LX DLLs in .DEF format
Post by firstname.lastname@example.org
The binary doesn't seem to have an ELF header (I don't see an "ELF" magic bytes in header). I'm hoping someone here can point me to documentation/specification that I can use to understand the format.
00000000: 0000 3800 0000 9001 1600 8201 0000 0000 ..8.............
00000010: 0100 0100 0100 0000 0000 0000 0000 ???? ..............??
00000020: 0000 0080 0000 0010 0000 00a0 0000 0000 ................
00000030: 0000 0000 0000 ???? 0020 ???? 0000 ???? ......??. ??..??
WATCOM Linker Version 10.6
Copyright by WATCOM International Corp. 1985, 1996. All rights reserved.
Created on: 00/10/13 16:27:51
Executable Image: test.x
creating a QNX 386 executable
But googling for "QNX executable format" or "QNX 386 executable" didn't get me any relevant hits.
Any help/hints much appreciated!