| description | Learn more about: /MERGE (Combine Sections) | ||||||
|---|---|---|---|---|---|---|---|
| title | /MERGE (Combine Sections) | ||||||
| ms.date | 11/04/2016 | ||||||
| f1_keywords |
|
||||||
| helpviewer_keywords |
|
||||||
| ms.assetid | 10fb20c2-0b3f-4c8d-98a8-f69aedf03d52 |
/MERGE:from=to
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.
-
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
-
Select the Configuration Properties > Linker > Advanced property page.
-
Modify the Merge Sections property.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.MergeSections%2A.