Share via


FIXUPVAR (Windows Embedded CE 6.0)

1/5/2010

FIXUPVAR is used to initialize a kernel global variable during the Make Binary Image phase of the build process.

You can also use this flag for OS design-specific physical memory initialization with multiple possible values that can be controlled with MAKEIMG flags.

Remarks

The following code example shows the declaration for a sample OAL (Nk.exe) global variable called gpdwVariable, with a value of 0.

const DWORD gpdwVariable = 0;

After gpdwVariable is declared, the following code example shows how to use FIXUPVAR to fix up gpdwVariable to the address 0x12345678.

nk.exe:gpdwVariable 00000000 0x12345678 FIXUPVAR

Note

This must be done in the MEMORY section of the .bib file.

FIXUPVAR does not work for uninitialized global variables and non-const global variables initialized to zero (0).

See Also

Reference

Romimage

Concepts

CONFIG Section
Binary Image Builder File

Other Resources

Memory Architecture