https://sourceware.org/bugzilla/show_bug.cgi?id=25806
--- Comment #1 from Fangrui Song <i at maskray dot me> --- I made some investigations. Notation: CWD => current working directory For a relative pathname (not absolute path or -l) in INPUT() or GROUP(): * GNU ld searches in CWD then in -L * gold searches in the parent directory of the current linker script then in -L. It does not fall back to CWD. I am going to change the search order of lld * the parent directory of the current linker script * next in CWD * then in -L. https://reviews.llvm.org/D77779 libstdc++.a currently includes object files from libsupc++. It could use a linker script as an alternative if GNU ld had this feature... Though there is probably no point to do this For libc++.a, it probably makes more sense because several C++ ABI libraries can be plugged in. -- You are receiving this mail because: You are on the CC list for the bug.