link/Elf.zig: set stack size and build-id for dynamic libraries.

This commit is contained in:
Jan200101
2024-12-30 12:52:47 +01:00
committed by Alex Rønne Petersen
parent 0df1f3df2f
commit d02c2c76fc

View File

@@ -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 => {