mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
std.start: dont query stack limit for wanted stack size 0 (#21533)
This commit is contained in:
parent
0cdec976e4
commit
3b465ebec5
1 changed files with 1 additions and 0 deletions
|
|
@ -539,6 +539,7 @@ fn expandStackSize(phdrs: []elf.Phdr) void {
|
|||
for (phdrs) |*phdr| {
|
||||
switch (phdr.p_type) {
|
||||
elf.PT_GNU_STACK => {
|
||||
if (phdr.p_memsz == 0) break;
|
||||
assert(phdr.p_memsz % std.mem.page_size == 0);
|
||||
|
||||
// Silently fail if we are unable to get limits.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue