Skip to content

deps: MASM.UseSafeExceptionHandlers for OpenSSL - #7427

Closed
indutny wants to merge 2 commits into
nodejs:masterfrom
indutny:ref/7426
Closed

deps: MASM.UseSafeExceptionHandlers for OpenSSL#7427
indutny wants to merge 2 commits into
nodejs:masterfrom
indutny:ref/7426

Conversation

@indutny

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX) or vcbuild test nosign (Windows) passes
  • a test and/or benchmark is included
  • documentation is changed or added
  • the commit message follows commit guidelines
Affected core subsystem(s)

build

Description of change

Use msvs_settings.MASM.UseSafeExceptionHandlers when building OpenSSL
assembly code on Windows. This option appends /safeseh to the list of
assembler flags when building .asm files on Windows.

Having this option in place, separate rules in masm_compile.gypi are
no longer needed.

Fix: #7426
R= @piscisaureus or @nodejs/platform-windows

Use `msvs_settings.MASM.UseSafeExceptionHandlers` when building OpenSSL
assembly code on Windows. This option appends `/safeseh` to the list of
assembler flags when building `.asm` files on Windows.
Having this option in place, separate rules in `masm_compile.gypi` are
no longer needed.
Fix: nodejs#7426
@nodejs-github-botnodejs-github-bot added the openssl Issues and PRs related to the OpenSSL dependency. label Jun 26, 2016
@indutnyindutny mentioned this pull request Jun 26, 2016
@indutnyindutny added windows Issues and PRs related to the Windows platform. build Issues and PRs related to build files or the CI. labels Jun 26, 2016
@indutny

Copy link
Copy Markdown
MemberAuthor

@indutny

Copy link
Copy Markdown
MemberAuthor

CI is green

Comment threaddeps/openssl/openssl.gyp Outdated
'includes': ['masm_compile.gypi',],
'msvs_settings': {
'MASM': {
# Use /safeseh, see: 01fa5ee

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change 01fa5ee to commit 01fa5ee?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack.

@bnoordhuis

Copy link
Copy Markdown
Member

LGTM with a suggestion.

@indutny

Copy link
Copy Markdown
MemberAuthor

@piscisaureus does this LGTY?

@jasnell

Copy link
Copy Markdown
Member

LGTM

@indutny

Copy link
Copy Markdown
MemberAuthor

May get at least one LGTM from @nodejs/platform-windows ?

@piscisaureus

Copy link
Copy Markdown
Contributor

Looks good to me, if it works.
I was unaware that gyp has built-in rules for running masm nowadays, but since this passes CI it must.
+1 to simplification any day

@indutny

Copy link
Copy Markdown
MemberAuthor

Cool, thank you!

@indutny

Copy link
Copy Markdown
MemberAuthor

Landed in 2787d70, thank you everyone!

@indutnyindutny closed this Jun 27, 2016
@indutny
indutny deleted the ref/7426 branch June 27, 2016 18:11
indutny added a commit that referenced this pull request Jun 27, 2016
Use `msvs_settings.MASM.UseSafeExceptionHandlers` when building OpenSSL
assembly code on Windows. This option appends `/safeseh` to the list of
assembler flags when building `.asm` files on Windows.
Having this option in place, separate rules in `masm_compile.gypi` are
no longer needed.
Fix: #7426
PR-URL: #7427
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Fishrock123 pushed a commit that referenced this pull request Jul 5, 2016
Use `msvs_settings.MASM.UseSafeExceptionHandlers` when building OpenSSL
assembly code on Windows. This option appends `/safeseh` to the list of
assembler flags when building `.asm` files on Windows.
Having this option in place, separate rules in `masm_compile.gypi` are
no longer needed.
Fix: #7426
PR-URL: #7427
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
@Fishrock123Fishrock123 mentioned this pull request Jul 5, 2016
@MylesBorins

Copy link
Copy Markdown
Contributor

@indutny lts?

@indutny

Copy link
Copy Markdown
MemberAuthor

I think - yes.

@richardlau

Copy link
Copy Markdown
Member

I think this is now causing warnings on 64-bit Windows:
e.g. https://ci.nodejs.org/job/node-compile-windows/3009/

MASM : warning A4018: invalid command-line option : /safeseh [c:\workspace\node-compile-windows\label\win-vs2015\deps\openssl\openssl.vcxproj]

In the now removed deps/openssl/masm_compile.gypi, /safeseh was only passed through to ml.exe when 'target_arch=="ia32"'. /safeseh is Not available in ml64.exe.

@indutny

Copy link
Copy Markdown
MemberAuthor

@richardlau thank you! Opened #7759 to fix this.

@indutnyindutny mentioned this pull request Jul 16, 2016
4 tasks
@indutny

Copy link
Copy Markdown
MemberAuthor

Should be fixed now, @richardlau ! Please give it a try.

@MylesBorins

Copy link
Copy Markdown
Contributor

@indutny would you be willing to make a backport that collects this and the fix?

@indutny

Copy link
Copy Markdown
MemberAuthor

@thealphanerd yep, to v4?

indutny added a commit to indutny/io.js that referenced this pull request Sep 3, 2016
Use `msvs_settings.MASM.UseSafeExceptionHandlers` when building OpenSSL
assembly code on Windows. This option appends `/safeseh` to the list of
assembler flags when building `.asm` files on Windows.
Having this option in place, separate rules in `masm_compile.gypi` are
no longer needed.
Fix: nodejs#7426
PR-URL: nodejs#7427
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
@indutny

Copy link
Copy Markdown
MemberAuthor

@thealphanerd here you go #8399

MylesBorins pushed a commit that referenced this pull request Sep 4, 2016
Use `msvs_settings.MASM.UseSafeExceptionHandlers` when building OpenSSL
assembly code on Windows. This option appends `/safeseh` to the list of
assembler flags when building `.asm` files on Windows.
Having this option in place, separate rules in `masm_compile.gypi` are
no longer needed.
Fix: #7426
PR-URL: #7427
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
MylesBorins pushed a commit that referenced this pull request Sep 28, 2016
Use `msvs_settings.MASM.UseSafeExceptionHandlers` when building OpenSSL
assembly code on Windows. This option appends `/safeseh` to the list of
assembler flags when building `.asm` files on Windows.
Having this option in place, separate rules in `masm_compile.gypi` are
no longer needed.
Fix: #7426
PR-URL: #7427
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
rvagg pushed a commit that referenced this pull request Oct 18, 2016
Use `msvs_settings.MASM.UseSafeExceptionHandlers` when building OpenSSL
assembly code on Windows. This option appends `/safeseh` to the list of
assembler flags when building `.asm` files on Windows.
Having this option in place, separate rules in `masm_compile.gypi` are
no longer needed.
Fix: #7426
PR-URL: #7427
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
MylesBorins pushed a commit that referenced this pull request Oct 26, 2016
Use `msvs_settings.MASM.UseSafeExceptionHandlers` when building OpenSSL
assembly code on Windows. This option appends `/safeseh` to the list of
assembler flags when building `.asm` files on Windows.
Having this option in place, separate rules in `masm_compile.gypi` are
no longer needed.
Fix: #7426
PR-URL: #7427
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Oct 26, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buildIssues and PRs related to build files or the CI.opensslIssues and PRs related to the OpenSSL dependency.windowsIssues and PRs related to the Windows platform.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenSSL windows asm question

7 participants

@indutny@bnoordhuis@jasnell@piscisaureus@MylesBorins@richardlau@nodejs-github-bot