authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-06-17 15:59:02+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-06-17 22:29:53+02:00
log180f6156f58b921920f3491f423759b4d7bd187c
tree0743da6ba7e12bd72982c9738ebf57a9ce510ee8
parent12815e2223085c1b990cfef754335f7b0d3bb2d0

Elf2: make synthesized __dso_handle symbol weak

Some libcs define this in their crt0, so if the synthesized symbol is strong, we get a duplicate definition error. closes https://codeberg.org/ziglang/zig/issues/35818

1 files changed, 1 insertions(+), 1 deletions(-)

src/link/Elf2.zig+1-1
...@@ -3262,7 +3262,7 @@ fn initHeaders(...@@ -3262,7 +3262,7 @@ fn initHeaders(
3262 .value = Section.Index.text.vaddr(elf),3262 .value = Section.Index.text.vaddr(elf),
3263 .size = 0,3263 .size = 0,
3264 .type = .NOTYPE,3264 .type = .NOTYPE,
3265 .bind = .strong,3265 .bind = .weak,
3266 .visibility = .HIDDEN,3266 .visibility = .HIDDEN,
3267 .shndx = .text,3267 .shndx = .text,
3268 }) catch |err| switch (err) {3268 }) catch |err| switch (err) {