commit d02c2c76fc718a4d55977cfa776c98dac1a90032 (tree)
parent 0df1f3df2f25bf12071f11e9b738a356dfbd214d
Author: Jan200101 <sentrycraft123@gmail.com>
Date: Mon, 30 Dec 2024 12:52:47 +0100
link/Elf.zig: set stack size and build-id for dynamic libraries.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/link/Elf.zig b/src/link/Elf.zig
@@ -1716,7 +1716,9 @@ fn linkWithLLD(self: *Elf, arena: Allocator, tid: Zcu.PerThread.Id, prog_node: s
"-z",
try std.fmt.allocPrint(arena, "stack-size={d}", .{self.base.stack_size}),
});
+ }
+ if (is_exe_or_dyn_lib) {
switch (self.base.build_id) {
.none => {},
.fast, .uuid, .sha1, .md5 => {