Re: deriving stack data addresses from ELF files

rfg@monkeys.com (Ronald F. Guilmette)
27 Feb 1997 00:36:10 -0500

          From comp.compilers

Related articles
deriving stack data addresses from ELF files rms@well.com (1997-02-16)
Re: deriving stack data addresses from ELF files rfg@monkeys.com (1997-02-27)
| List of all articles for this month |
From: rfg@monkeys.com (Ronald F. Guilmette)
Newsgroups: comp.compilers
Date: 27 Feb 1997 00:36:10 -0500
Organization: Infinite Monkeys & Co.
References: 97-02-101
Keywords: debug, linker

richard marlon stein <rms@well.com> wrote:
>[ How can I tell from the symbols in an ELF file where in memory a
>stack variable will be?]


In a word, no... no one can furnish you with such advice because block-
local and/or function-local ``stack'' variables are not allocated at
fixed addresses. Rather, they are allocated dynamically, at run time,
and may actually reside at different places in the stack at different
times during the execution of the program which contains them.
--


-- Ron Guilmette, Roseville, CA -------- Infinite Monkeys & Co. ------------
---- E-mail: rfg@monkeys.com -----------------------------------------------
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.