Skip to content

Commit 9bd900d

Browse files
authored
Add space in shared lib entrypoint option (#106073)
Per @alexrp's suggestion ziglang/zig#20384 (comment). I've tested it with bfd and lld. It should work with existing zld as well (which is currently handling `-Wl,-e,0x0`). Fixes #106029
1 parent 63c6279 commit 9bd900d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ The .NET Foundation licenses this file to you under the MIT license.
208208
<LinkerArg Include="-Wl,-install_name,&quot;$(SharedLibraryInstallName)&quot;" Condition="'$(_IsiOSLikePlatform)' == 'true' and '$(NativeLib)' == 'Shared'" />
209209
<LinkerArg Include="-Wl,--build-id=sha1" Condition="'$(_IsApplePlatform)' != 'true'" />
210210
<LinkerArg Include="-Wl,--as-needed" Condition="'$(_IsApplePlatform)' != 'true'" />
211-
<LinkerArg Include="-Wl,-e0x0" Condition="'$(NativeLib)' == 'Shared' and '$(_IsApplePlatform)' != 'true'" />
211+
<LinkerArg Include="-Wl,-e,0x0" Condition="'$(NativeLib)' == 'Shared' and '$(_IsApplePlatform)' != 'true'" />
212212
<LinkerArg Include="-pthread" Condition="'$(_IsApplePlatform)' != 'true'" />
213213
<LinkerArg Include="@(NativeSystemLibrary->'-l%(Identity)')" />
214214
<LinkerArg Include="-L/usr/lib/swift" Condition="'$(_IsApplePlatform)' == 'true'" />

0 commit comments

Comments
 (0)