-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Improve embedded PCK loading and exporting. #56093
Conversation
7adbfef
to
47d25ed
Compare
21e48dd
to
00b156d
Compare
Some extra info, it's improving the situation with the embedded PCK a bit, but not fixing it:
I'll try to apply Tested with following configurations:
|
00b156d
to
12c0a4d
Compare
This seems to work. |
12c0a4d
to
0067ef0
Compare
0067ef0
to
b946b08
Compare
b946b08
to
42b231d
Compare
c89e586
to
62e529f
Compare
62e529f
to
fb3a677
Compare
Windows export process: Limit size of executable with embedded PCK to 4 GB. Use "rcedit" before embedding PCK. Capture and process "rcedit" errors. Windows, Linux: Add support for PCK loading from executable "pck" section.
fb3a677
to
c0cc41d
Compare
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 don't see (or should I say 'smell'?) anything fishy.
Thanks! |
@bruvzg Would you be up for backporting these changes to |
Backporting should be mostly straightforward, I'll take a look tomorrow. |
3.x version - #60580 |
|
You should strip the template before exporting, so you don't need to strip it after. Otherwise you can maybe use |
For the record, I did actually figure out a solution to my underlying use case: |
There should be info about this size limit in the documentation, not sure if there's a warning somewhere to explain what's happening. |
[Windows export]
4 GB - 1
.Fixes #56051
[Windows and Linux] Add support for PCK loading from executable "pck" section.
Note: need testing with different build configurations, some might strip "pck" section stub and prevent it from loading.
Fixes #32310, fixes #33466.