finding out where the text/bss sits

Brendan Kehoe brendan at cs.widener.edu
Wed Jan 2 15:12:09 AEST 1991


  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 at 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.



More information about the Comp.unix.internals mailing list