`linuxstatic` binaries of v3.2.4 are defective
See original GitHub issuelinuxstatic
binaries of v3.2.4 are defective.
The newer GCC compiler is smarter. It figures out that BAKERY
placeholder is not actually used and omit it. However, pkg
does need the placeholder to override the launch arguments of Node.js.
volatile char* BAKERY = (volatile char*) "\0// BAKERY // BAKERY " \
"// BAKERY // BAKERY // BAKERY // BAKERY // BAKERY // BAKERY " \
"// BAKERY // BAKERY // BAKERY // BAKERY // BAKERY // BAKERY " \
"// BAKERY // BAKERY // BAKERY // BAKERY // BAKERY // BAKERY ";
...
char* bakery = (char*) BAKERY;
while (true) {
size_t width = strlen2(bakery);
if (width == 0) break;
nargv[c++] = bakery;
bakery += width + 1;
}
...
I am honestly surprised by the fact that the compiler can figure that out at compile-time.
This is a repeat of the earlier issue with Clang (#199). For GCC, only static binaries are affected by this issue.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:14 (4 by maintainers)
Top Results From Across the Web
Will static linking on one unix distribution work but not another?
If I statically link an executable in ubuntu, is there any chance that that executable won't work within another distribution such as mint...
Read more >16.4. Static Routes and the Default Gateway
Configuring Static Routes in ifcfg files ... Restrict Permissions for Executable Directories ... Advantages of Red Hat Enterprise Linux Single Sign-on.
Read more >SLINKY: Static Linking Reloaded - USENIX
In this paper we describe the SLINKY system that uses digest-based sharing to combine the simplicity of static linking with the space savings...
Read more >Apache Performance Tuning - Apache HTTP Server Version 2.4
(With Linux, for example, this means using Linux 2.4 or later. ... you have modules statically linked into your Apache binary, you will...
Read more >homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter
aacgain 1.8 AAC‑supporting version of mp3gain
aalib 1.4rc5 Portable ASCII art graphics library
aamath 0.3 Renders mathematical expressions as ASCII art
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@leerob When you have time, please publish 3.2.5 to npm. Thanks!
I have to agree with @robertsLando - if this was about some feature request I would understand. But this issue is about broken packages that are unfixed for 3 weeks even though the fix is available.