link/Elf.zig: set stack size and build-id for dynamic libraries.
This commit is contained in:
committed by
Alex Rønne Petersen
parent
0df1f3df2f
commit
d02c2c76fc
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user