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
Does this happen all the time or when you link a specific program?
Seems to happen everytime -lgcc_s is required to resolve _Unwind_Resume .. Even simple test apps
mold -o a.out -L /usr/lib64 -ldl test2.o -L/usr/pkgs/gcc/11.1.0/lib64/ -lc -lstdc++ -lgcc_s
Activity
rui314 commentedon May 11, 2022
What program are you linking?
Does this happen all the time or when you link a specific program?
gcflymoto commentedon May 11, 2022
gcflymoto commentedon Jul 10, 2022
Getting closer!
libgcc_s.so is a script that requires libgcc.a (it wasn't clear from the mold error message). After adding the path to libgcc.a
mold -o a.out -L/usr/lib64 -ldl test2.o -L/usr/pkgs/gcc/12.1.0/lib64/ -lc -lstdc++ -lgcc_s -L/usr/pkgs/gcc/12.1.0/lib/gcc/x86_64-pc-linux-gnu/12.1.0/
mold: error: undefined symbol: test2.o: __dso_handle
Any ideas @rui314 ??
[-]mold: fatal: library not found: gcc[/-][+]mold: error: undefined symbol: test2.o: __dso_handle[/+]rui314 commentedon Jul 11, 2022
Can you rebuild mold with the above commit and try again?
gcflymoto commentedon Jul 11, 2022
Confirmed! Working now. Thank you so much.
I'm stuck on a build layer calling mold with -rdynamic.. but that's a separate issue I might workaround.
rui314 commentedon Jul 12, 2022
-rdynamicisn't a valid option for anyldcommand as a far as I know. It's an option for compiler drivers (e.g.cc,gcc, etc.)