Skip to content

Commit

Permalink
Enable -z,relro,-z,now for NativeAOT binaries
Browse files Browse the repository at this point in the history
Fixes binskim warning BA3011

Contributes to #1738
  • Loading branch information
jkotas committed Nov 20, 2021
1 parent 7dcd615 commit 324d0d2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ The .NET Foundation licenses this file to you under the MIT license.
<LinkerArg Include="-Wl,-rpath,'$ORIGIN'" Condition="'$(TargetOS)' != 'OSX'" />
<LinkerArg Include="-Wl,-rpath,'@executable_path'" Condition="'$(TargetOS)' == 'OSX'" />
<LinkerArg Include="-Wl,--as-needed" Condition="'$(TargetOS)' != 'OSX'" />
<LinkerArg Include="-Wl,-z,relro,-z,now" Condition="'$(TargetOS)' != 'OSX'" />
<LinkerArg Include="-pthread" Condition="'$(TargetOS)' != 'OSX'" />
<LinkerArg Include="-lstdc++" />
<LinkerArg Include="-ldl" />
Expand Down

0 comments on commit 324d0d2

Please sign in to comment.