-
Notifications
You must be signed in to change notification settings - Fork 967
[link.exe /INTEGRITYCHECK] fix -- ":NO" suffix doesn't work, so update the docs #4676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[link.exe /INTEGRITYCHECK] fix -- ":NO" suffix doesn't work, so update the docs #4676
Conversation
@glenn-slayden : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
c.f. oops... glenn-slayden#1 |
Learn Build status updates of commit cfe6833: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
Can you review the proposed changes? When the changes are ready for publication, add a #label:"aq-pr-triaged" |
Thanks, @glenn-slayden. I'll take this up with a dev on the linker team and see what direction they'd like to go. |
The dev who works on the linker went through the source code history, and sees no evidence of it ever supporting the :NO portion. So that's a strange doc artifact, that your update fixes. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See what you think of the small suggestion I made. What I'm trying to avoid is people thinking the feature is somehow on unless they do something.
1. In **Additional Options**, enter *`/INTEGRITYCHECK`* or *`/INTEGRITYCHECK:NO`*. Choose **OK** to save your changes. | ||
1. To build an image which requires digital signature verification to be loaded, add *`/INTEGRITYCHECK`* to the **Additional Options** command line. | ||
|
||
1. To disable the feature, remove the *`/INTEGRITYCHECK`* option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be slightly clearer if we say "This feature is off unless turned on with /INTEGRITYCHECK
."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated this. If you have something you'd like better, let me know. In the meantime I'll get your changes through.
Learn Build status updates of commit 146ff9f: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
#sign-off |
@TylerMSFT Sorry for the late remark after this is closed, but my original text was also not the best: " • To build an image which requires digital signature verification, in order to be loaded,..." ...would be less ambiguous. It would avoid the incorrect/nonsensical reading where it is somehow the "verification" (as opposed to, correctly, the image) which must be "loaded". |
No worries, @glenn-slayden. I don't actually that sentence the way you do, but since I'm in this folder today, anyway, I tweaked it like so:
|
Super, thanks. |
The doc mentions
/INTEGRITYCHECK:NO
, but this does not appear to be a valid command line option with the currentlink.exe
releases. My version oflink
rejects that syntax entirely.I don't know where the official
link.exe
source code is kept, but it likely has the exact same bug in the code that I found in the link below. Due to this obvious bug that I point out in the source code, there seems to be no way to explicilty assert/INTEGRITYCHECK
in the negative, except by simply removing the option.https://github.com/microsoft/BuildXL/blob/main/Public/Sdk/Experimental/Msvc/Native/Tools/Link/Link.dsc#L303-L307
I would welcome a
link
developer to fix the program itself, so it works as described, but in the meantime, at least the docs can be changed to reflect the current situation.