I’m currently using clang to link because I couldn’t get ld64.lld on my system (macOS) to work without giving errors.
If I used LLVM to produce some .o files which have many symbols but I never use them in the main program file the linker still imports all of the symbols into the binary.
What are you supposed to do to avoid this? Am I using the wrong linker? I also didn’t use learn to use the linkage attributes in the IR yet but I still don’t see how that changes anything because the symbols are unreferenced. Any guides would be appreciated, thanks.