Skip to content

Commit 56017ca

Browse files
authored
Merge pull request #4262 from corob-msft/docs/corob/cpp-docs-3871-followup
Followup cpp-docs 3871 in linker opts
2 parents b44fdb0 + ad56248 commit 56017ca

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

docs/build/reference/dynamicbase-use-address-space-layout-randomization.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
---
22
description: "Learn more about: /DYNAMICBASE (Use address space layout randomization)"
33
title: "/DYNAMICBASE (Use address space layout randomization)"
4-
ms.date: "06/12/2018"
4+
ms.date: 05/05/2022
55
f1_keywords: ["VC.Project.VCLinkerTool.RandomizedBaseAddress"]
66
helpviewer_keywords: ["-DYNAMICBASE linker option", "/DYNAMICBASE linker option", "DYNAMICBASE linker option"]
77
ms.assetid: 6c0ced8e-fe9c-4b63-b956-eb8a55fbceb2
88
---
9-
# /DYNAMICBASE (Use address space layout randomization)
9+
# `/DYNAMICBASE` (Use address space layout randomization)
1010

11-
Specifies whether to generate an executable image that can be randomly rebased at load time by using the address space layout randomization (ASLR) feature of Windows that was first available in Windows Vista.
11+
Specifies whether to generate an executable image that can be randomly rebased at load time by using the address space layout randomization (ASLR) feature of Windows. ASLR was first available in Windows Vista.
1212

1313
## Syntax
1414

15-
> **/DYNAMICBASE**[**:NO**]
15+
> **`/DYNAMICBASE`**[**`:NO`**]
1616
1717
## Remarks
1818

19-
The **/DYNAMICBASE** option modifies the header of an *executable image*, a .dll or .exe file, to indicate whether the application should be randomly rebased at load time, and enables virtual address allocation randomization, which affects the virtual memory location of heaps, stacks, and other operating system allocations. The **/DYNAMICBASE** option applies to both 32-bit and 64-bit images. ASLR is supported on Windows Vista and later operating systems. The option is ignored by earlier operating systems.
19+
The **`/DYNAMICBASE`** option modifies the header of an *executable image*, a .dll or .exe file, to indicate whether the application should be randomly rebased at load time, and enables virtual address allocation randomization, which affects the virtual memory location of heaps, stacks, and other operating system allocations. The **`/DYNAMICBASE`** option applies to both 32-bit and 64-bit images. ASLR is supported on Windows Vista and later operating systems. The option is ignored by earlier operating systems.
2020

21-
By default, **/DYNAMICBASE** is enabled. To disable this option, use **/DYNAMICBASE:NO**. The **/DYNAMICBASE** option is required for the [/HIGHENTROPYVA](highentropyva-support-64-bit-aslr.md) option to have an effect.
21+
By default, **`/DYNAMICBASE`** is enabled. To disable this option, use **`/DYNAMICBASE:NO`**. The **`/DYNAMICBASE`** option is required for the [`/HIGHENTROPYVA`](highentropyva-support-64-bit-aslr.md) option to have an effect.
22+
23+
Because ASLR can't be disabled on ARM, ARM64, or ARM64EC architectures, **`/DYNAMICBASE:NO`** isn't supported for these targets.
2224

2325
### To set this linker option in Visual Studio
2426

@@ -35,6 +37,6 @@ By default, **/DYNAMICBASE** is enabled. To disable this option, use **/DYNAMICB
3537
## See also
3638

3739
- [MSVC linker reference](linking.md)
38-
- [MSVC Linker Options](linker-options.md)
39-
- [/HIGHENTROPYVA](highentropyva-support-64-bit-aslr.md)
40+
- [MSVC linker options](linker-options.md)
41+
- [`/HIGHENTROPYVA`](highentropyva-support-64-bit-aslr.md)
4042
- [Windows ISV Software Security Defenses](/previous-versions/bb430720(v=msdn.10))

0 commit comments

Comments
 (0)