Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!spool2.mu.edu!news.cs.indiana.edu!cs.widener.edu!brendan From: brendan@cs.widener.edu (Brendan Kehoe) Newsgroups: comp.unix.internals Subject: finding out where the text/bss sits Message-ID: <1991Jan02.041209.9552@cs.widener.edu> Date: 2 Jan 91 04:12:09 GMT Followup-To: comp.unix.internals Organization: Widener CS Dept Lines: 28 Hi there .. this is relative to a program I've been hacking on. This is all on a Sun Sparc-1 under SunOS 4.1. First, I'm trying to find out the address of where a user's text, data, & bss segments are sitting (well, more so the bss than anything). I've been digging for hours & have come up with a few stringy clues, but nothing's come of it yet. What I want to be able to do is read in a structure, say struct blah { char *this; struct blah *that; struct blah *the_other; }; from the bss of another process (it'd have been declared globally). And I can't assume that a namelist is in the executable. My two biggest problems are trying to find out where they're sitting and how to find out the position of the structure if it doesn't have a symbol table. (Is this impossible to work around?) Was that sufficiently obscure? (I'm living on caffeine right now.) Back I go... -- Brendan Kehoe - Widener Sun Network Manager - brendan@cs.widener.edu Get ``Red Hot & Blue'', songs by Cole Porter sung by U2, Sinead O'Connor, The Neville Brothers, Tom Waits, & many more. Proceeds benefit AIDS research.