Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.71 KB

fixed-fixed-base-address.md

File metadata and controls

40 lines (26 loc) · 1.71 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: /FIXED (Fixed Base Address)
/FIXED (Fixed Base Address)
11/04/2016
/fixed
VC.Project.VCLinkerTool.FixedBaseAddress
preferred base address for loading program
/FIXED linker option
-FIXED linker option
FIXED linker option
929bba5e-b7d8-40ed-943e-056aa3710fc5

/FIXED (Fixed Base Address)

/FIXED[:NO]

Remarks

Tells the operating system to load the program only at its preferred base address. If the preferred base address is unavailable, the operating system does not load the file. For more information, see /BASE (Base Address).

/FIXED:NO is the default setting for a DLL, and /FIXED is the default setting for any other project type.

When /FIXED is specified, LINK does not generate a relocation section in the program. At run time, if the operating system is unable to load the program at the specified address, it issues an error message and does not load the program.

Specify /FIXED:NO to generate a relocation section in the program.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Select the Configuration Properties > Linker > Command Line property page.

  3. Enter the option name and setting in the Additional Options box.

To set this linker option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.AdditionalOptions%2A.

See also

MSVC linker reference
MSVC Linker Options