Dobin 0x11_MemoryLayout.pdf
Dobin 0x11_MemoryLayout.pdf
Dobin 0x11_MemoryLayout.pdf
9
0.0 (0)
Set of flashcards Details
Flashcards | 9 |
---|---|
Language | English |
Category | Religion/Ethics |
Level | University |
Created / Updated | 21.06.2019 / 21.06.2019 |
Licencing | Not defined |
Weblink |
https://card2brain.ch/box/20190621_dobin_0x11memorylayout_pdf
|
Embed |
<iframe src="https://card2brain.ch/box/20190621_dobin_0x11memorylayout_pdf/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
|
What are the charecteristics of the stack?
Stack:
- There is one contiguous memory region containing the stack for the process
- LIFO - Last in, First Out
- Contains funtion local variables
- Also contains: Saved Instruction Pointer (SIP)
- Current function adds data to the top (bottom) of the stack
What are the charecteristics of the heap?
Heap:
- There is on contiguous memory region containing the heap
- Memory allocator returns specific pieces of the memory region
- For malloc()
- Alos contains: heap management data
What is stored in the code region in memory?
Code region contains:
- Compiled program code
What is the ELF format, and name 3 types.
Programs are stored in ELF files
ELF: Executable and Linkable Format
- Like COFF, PE (EXE), ....
ELF types:
- ET_EXEC: Executable File
- ET_REL: Relocatable File
- ET_DYN: Shared Object File
ELF "views"
- Sections
- Segments
In the ELF format what can be contained in the sections?
Sections:
- .text: Executable instructions
- .bss: Unitialized data (usualy the heap)
- .data: initialized data
- .rodata: Read-Only data
- .got: Global Offset Table
- .plt: Prcedure Linkage Table
- .init / .fini: initialiyation instructions ("glibc")