Skip to content
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

System-Dlls strings #44

Closed
BitBlit88 opened this issue Mar 17, 2023 · 2 comments
Closed

System-Dlls strings #44

BitBlit88 opened this issue Mar 17, 2023 · 2 comments
Labels
处置:完成(Done) 影响范围:低 这个问题不会造成真正的体验问题,可以暂缓解决。 类型:新功能/建议(enhancement) New feature or request

Comments

@BitBlit88
Copy link

When I build a project using vc-LTL5 with target version 5 or 6 there are still some leftover strings in the rdata-section of the binary pointing to some system dlls:

api-ms-win-core-datetime-l1-1-1
api-ms-win-core-fibers-l1-1-1
api-ms-win-core-file-l1-2-2
api-ms-win-core-localization-l1-2-1
api-ms-win-core-localization-obsolete-l1-2-0
api-ms-win-core-processthreads-l1-1-2
api-ms-win-core-string-l1-1-0
api-ms-win-core-synch-l1-2-0
api-ms-win-core-sysinfo-l1-2-1
api-ms-win-core-winrt-l1-1-0
api-ms-win-core-xstate-l2-1-0
api-ms-win-rtcore-ntuser-window-l1-1-0
api-ms-win-security-systemfunctions-l1-1-0
ext-ms-win-ntuser-dialogbox-l1-1-0
ext-ms-win-ntuser-windowstation-l1-1-0
api-ms-win-appmodel-runtime-l1-1-2

These are no direct dependencies, they are only utf16 strings in the data section occupying more than 1KB.
Using target version 10 with a dependency to ucrt, there are no such strings.

Is there a possibility to build a binary with target version 5 or 6 without these leftover strings?

@mingkuang-Chuyu mingkuang-Chuyu added 类型:新功能/建议(enhancement) New feature or request 处置:正在讨论(Review) 我们正在讨论如何解决,怎么实现更好。 影响范围:低 这个问题不会造成真正的体验问题,可以暂缓解决。 labels Apr 4, 2023
@mingkuang-Chuyu
Copy link
Collaborator

These strings come from MS "C:\Program Files (x86)\Windows Kits\10\Source\10.0.22000.0\ucrt\internal\winapi_thunks.cpp".

It exists in a copy in VC-LTL :VC-LTL5\Sources\ucrt\internal\winapi_thunks.cpp

I optimized this file to remove unnecessary references. Change as follows:

  1. remove Windows API Set.
  2. remove unsed Function.

@mingkuang-Chuyu mingkuang-Chuyu added 处置:等待发布(Publishing) 问题已经解决,等待新版本发布。 and removed 处置:正在讨论(Review) 我们正在讨论如何解决,怎么实现更好。 labels Apr 4, 2023
@mingkuang-Chuyu
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
处置:完成(Done) 影响范围:低 这个问题不会造成真正的体验问题,可以暂缓解决。 类型:新功能/建议(enhancement) New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants