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