/MERGE (Combine Sections)
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at -MERGE (Combine Sections).
MERGE:from=to
## Remarks The /MERGE option combines the first section (*from*) with the second section (*to*), naming the resulting section *to*. For example, `/merge:.rdata=.text`. If the second section does not exist, LINK renames the section *from* as *to*. The /MERGE option is useful for creating VxDs and overriding the compiler-generated section names. ### To set this linker option in the Visual Studio development environment 1. Open the project's **Property Pages** dialog box. For details, see [Setting Visual C++ Project Properties](../Topic/Working%20with%20Project%20Properties.md). 2. Click the **Linker** folder. 3. Click the **Advanced** property page. 4. Modify the **Merge Sections** property. ### To set this linker option programmatically 1. See [MergeSections](assetId:///P:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.MergeSections?qualifyHint=False&autoUpgrade=True). ## See Also [Setting Linker Options](../Topic/Setting%20Linker%20Options.md) [Linker Options](../Topic/Linker%20Options.md)
Show: