mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std.start: dont query stack limit for wanted stack size 0 (#21533)
This commit is contained in:
parent
0cdec976e4
commit
3b465ebec5
@ -539,6 +539,7 @@ fn expandStackSize(phdrs: []elf.Phdr) void {
|
|||||||
for (phdrs) |*phdr| {
|
for (phdrs) |*phdr| {
|
||||||
switch (phdr.p_type) {
|
switch (phdr.p_type) {
|
||||||
elf.PT_GNU_STACK => {
|
elf.PT_GNU_STACK => {
|
||||||
|
if (phdr.p_memsz == 0) break;
|
||||||
assert(phdr.p_memsz % std.mem.page_size == 0);
|
assert(phdr.p_memsz % std.mem.page_size == 0);
|
||||||
|
|
||||||
// Silently fail if we are unable to get limits.
|
// Silently fail if we are unable to get limits.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user