Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 1.38 KB

struct-runtime-function.md

File metadata and controls

29 lines (26 loc) · 1.38 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs ms.assetid caps.latest.revision author ms.author manager
struct RUNTIME_FUNCTION | Microsoft Docs
11/04/2016
cpp-tools
article
C++
84386527-d3aa-41c5-871d-78e3e1913704
9
corob-msft
corob
ghogen

struct RUNTIME_FUNCTION

Table-based exception handling requires a table entry for all functions that allocate stack space or call another function (for example, nonleaf functions). Function table entries have the format:

ULONG Function start address
ULONG Function end address
ULONG Unwind info address

The RUNTIME_FUNCTION structure must be DWORD aligned in memory. All addresses are image relative, that is, they are 32-bit offsets from the starting address of the image that contains the function table entry. These entries are sorted, and put in the .pdata section of a PE32+ image. For dynamically generated functions [JIT compilers], the runtime to support these functions must either use RtlInstallFunctionTableCallback or RtlAddFunctionTable to provide this information to the operating system. Failure to do so will result in unreliable exception handling and debugging of processes.

See Also

Unwind Data for Exception Handling, Debugger Support