tag:blogger.com,1999:blog-5968355124473522212.post2347561550101868171..comments2024-03-26T19:42:51.465+02:00Comments on Nibble Stew: Linker symbol lookup order does not work the way you thinkJussihttp://www.blogger.com/profile/03370287682352908292noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5968355124473522212.post-18626233906485007862022-01-01T13:42:08.304+02:002022-01-01T13:42:08.304+02:00I have not verified it myself, but I think that Go...I have not verified it myself, but I think that Gold emulates GNU ld whereas lld and mold do the sane thing.Jussihttps://www.blogger.com/profile/03370287682352908292noreply@blogger.comtag:blogger.com,1999:blog-5968355124473522212.post-17198588580893306052022-01-01T04:42:20.028+02:002022-01-01T04:42:20.028+02:00And what about clang/llvm using non-gnu linkers, l...And what about clang/llvm using non-gnu linkers, like gold or, better, mold? Or do they emulate the old broken gnu linker? (Yes, broken: I thought I'd learn something new about how linkers worked from this article - which was good! But what I learned was that Microsoft's (earlier: Intel's) linker works as you'd NATURALLY EXPECT and that GNU's linker has been broken since forever because reasons.David Bakinhttps://www.blogger.com/profile/08596808011584860686noreply@blogger.comtag:blogger.com,1999:blog-5968355124473522212.post-8528841811534653662018-09-19T17:29:54.740+03:002018-09-19T17:29:54.740+03:00FWIW, Solaris 10 ld behaves like Linux/GNU ld - i....FWIW, Solaris 10 ld behaves like Linux/GNU ld - i.e. with liba.o and liba2.o in the library the symbol 'three' is undefined; and if both translation units are concatenated it succeeds (i.e. possibility 3).<br /><br />The Solaris ld also understands the --start-group/--end-group options.Anonymoushttps://www.blogger.com/profile/04737163134228716486noreply@blogger.com