🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.rt
Article #1766

Re: Undump on RT

#1766
From: A. Lester Buck
Date: Mon, 15 May 1989 04:17
24 lines
1624 bytes
In article <1259@swisun.swivax.UUCP>, jan@swivax.UUCP (Jan Wielemaker) writes:
> Has anyone ported the Unix program undump by Spencer (to transform core
> dumps into new executables) to the RT under AIX. Trivial port from the
> SUN version seems to fail. Probably special initialisation code (before
> main() is called) is needed.

Gee, I think this would be in the "hard problem" category, but don't
know for sure.  I have spent the past few days poking around in
a.out.h et al. pulling linenumber<->symbol value information out
for an execution time profiler program.  Unix System V uses COFF,
AIX uses GPOFF, and Berkeley uses ? (no direct experience).

To really make an executable, you get to deal with fun stuff like
AIX's desire to build a data structure in the data segment called
_main that holds the address of the start of main(), called .main,
(Did you follow that?) as well as other useful numbers.  Of course,
this is only partially covered in the very back of the C manual,
if I remember, or was it the Assembler?  And if you can't figure
out everything from the headers alone, well, you're just SOL.

Good luck!

-- 
A. Lester Buck		...!texbell!moray!siswat!buck
Technical Details
Message-ID: <397@siswat.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!shelby!rutgers!bellcore!texbell!uhnix1!moray!siswat!buck
References: <1259@swisun.swivax.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!shelby!rutgers!bellcore!texbell!uhnix1!moray!siswat!buck
From: buck@siswat.UUCP (A. Lester Buck)
Newsgroups: comp.sys.ibm.pc.rt
Subject: Re: Undump on RT
Summary: Probably possible, but not easy...
Message-ID: <397@siswat.UUCP>
Date: 15 May 89 04:17:35 GMT
References: <1259@swisun.swivax.UUCP>
Organization: Photon Graphics,  Houston
Lines: 24