Skip to content

Commit d02c2c7

Browse files
Jan200101alexrp
authored andcommitted
link/Elf.zig: set stack size and build-id for dynamic libraries.
1 parent 0df1f3d commit d02c2c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/link/Elf.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,9 @@ fn linkWithLLD(self: *Elf, arena: Allocator, tid: Zcu.PerThread.Id, prog_node: s
17161716
"-z",
17171717
try std.fmt.allocPrint(arena, "stack-size={d}", .{self.base.stack_size}),
17181718
});
1719+
}
17191720

1721+
if (is_exe_or_dyn_lib) {
17201722
switch (self.base.build_id) {
17211723
.none => {},
17221724
.fast, .uuid, .sha1, .md5 => {

0 commit comments

Comments
 (0)