Article View: comp.sys.sun
Article #6287dynamic file loading
From: Ranjan Bagchi
Date: Wed, 02 Jan 1991 23:29
Date: Wed, 02 Jan 1991 23:29
24 lines
1551 bytes
1551 bytes
This is concerning SunOS 4.1 on a Sparc. I've been working with the
executable file structure as outlined in a.out (5), and have questions
regarding the dynamic loading which seem to be omited from the man page.
Essentially, what happens? When the loading is static, it is easy to
find, for instance (and what my main interest really is), the function
pointers to all the functions called within the program. But when the
loading is dynamic, I can find nothing. Here's the specific breakdown of
questions:
1. The way I've had it explained to me is that upon execution of of a
dynamic a.out file, the loader finds names of the external symbols, and
then goes somewhere (libraries?) to find the matching symbols and links up
the pointers. Is this correct?
2. If so, where does the loader go for this information?
3. How would I go about pretending to be the loader, and get pointers to
information not in the a.out file?
Ranjan Bagchi - At Large. Well Kinda.
bagchi@[eecs
caen,
math.lsa].umich.edu]
Technical Details
Message-ID:
<1023@brchh104.bnr.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: bagchi@eecs.umich.edu (Ranjan Bagchi) Newsgroups: comp.sys.sun Subject: dynamic file loading Keywords: Miscellaneous Message-ID: <1023@brchh104.bnr.ca> Date: 2 Jan 91 23:29:12 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 24 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 10, Issue 3, message 7 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu