You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an example where two shared libraries (A and B) don't link with -z defs; and where C does build with -z defs and links both libraries.
This example includes an mistake where B attempts to use a local from A (helper_a()). When linking with ld an undefined reference error is raised. This does not occur with Mold with the same linker flags, transforming this mistake into a runtime error.
If helper_a() were not defined in A at all, there is still no error raised with Mold, I don't think symbol visibility matters in this example.
I have an example where two shared libraries (A and B) don't link with
-z defs
; and where C does build with-z defs
and links both libraries.This example includes an mistake where B attempts to use a local from A (
helper_a()
). When linking withld
an undefined reference error is raised. This does not occur with Mold with the same linker flags, transforming this mistake into a runtime error.If
helper_a()
were not defined in A at all, there is still no error raised with Mold, I don't think symbol visibility matters in this example.I tested with mold 2.32.1, attached is the described example project:
mold_vs_ld_undefined_symbols.zip
The text was updated successfully, but these errors were encountered: