Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7e0c574

Browse files
committed
MSVC 2012+: Permit linking to 32-bit, MinGW-built libraries.
Notably, this permits linking to the 32-bit Perl binaries advertised onperl.org, namely Strawberry Perl and ActivePerl. This has a side effectof permitting linking to binaries built with obsolete MSVC versions.By default, MSVC 2012 and later require a "safe exception handler table"in each binary. MinGW-built, 32-bit DLLs lack the relevant exceptionhandler metadata, so linking to them failed with error LNK2026. Restorethe semantics of MSVC 2010, which omits the table from a given binary ifsome linker input lacks metadata. This has no effect on 64-bit buildsor on MSVC 2010 and earlier. Back-patch to 9.3 (all supportedversions).Reported by Victor Wagner.Discussion:https://postgr.es/m/20160326154321.7754ab8f@wagner.wagner.home
1 parent65a00f3 commit7e0c574

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/tools/msvc/MSBuildProject.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ sub WriteItemDefinitionGroup
320320
<GenerateMapFile>false</GenerateMapFile>
321321
<MapFileName>.\\$cfgname\\$self->{name}\\$self->{name}.map</MapFileName>
322322
<RandomizedBaseAddress>false</RandomizedBaseAddress>
323+
<!-- Permit links to MinGW-built, 32-bit DLLs (default before VS2012). -->
324+
<ImageHasSafeExceptionHandlers/>
323325
<SubSystem>Console</SubSystem>
324326
<TargetMachine>$targetmachine</TargetMachine>
325327
EOF

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp