1

I know that to find a text (code) section's base address one should look for the .text section virtual address (except if ASLR is enabled), but what about stack?

Is stack memory stored in the .data section along with the heap? If so I should look for .data section virtual address to know the stack base address

PeeHaa
  • 71,436
  • 58
  • 190
  • 262
Johnny Pauling
  • 12,701
  • 18
  • 65
  • 108

1 Answers1

4

The stack is not a section. A stack is dynamically allocated for each thread. (If it were a section, then you could have only one thread per process.)

Raymond Chen
  • 44,448
  • 11
  • 96
  • 135