Skip to content

Commit 83ec651

Browse files
committed
Add -fzero-init-padding-bits to table situational options in tl;dr
Signed-off-by: Thomas Nyman <[email protected]>
1 parent ee3056c commit 83ec651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ When compiling C or C++ code on compilers such as GCC and clang, turn on these f
3535

3636
| When | Additional options flags |
3737
|:------------------------------------------------------- |:---------------------------------------------------------------------------------------------------------|
38-
| using GCC | `-Wtrampolines` |
38+
| using GCC | `-Wtrampolines -fzero-init-padding-bits=all` |
3939
| using GCC and only left-to-right writing in source code | `-Wbidi-chars=any` |
4040
| for executables | `-fPIE -pie` |
4141
| for shared libraries | `-fPIC -shared` |

0 commit comments

Comments
 (0)