<div dir="ltr">Hi Michael,<div><br></div><div style>This is a patch to fix an issue of linker script handler.</div><div style><br></div><div style>If a path in GROUP command is not absolute, the linker needs to search through the library search path. Currently lld does nothing about non-absolute paths, so it fails to find a dynamic library if it's not written as an absolute path in a linker script.</div>
<div style><br></div><div style><br></div><div style><div> include/lld/Core/Error.h | 3 ++-</div><div> include/lld/ReaderWriter/ELFTargetInfo.h | 5 +++++</div><div> include/lld/ReaderWriter/ReaderLinkerScript.h | 9 ++++++---</div>
<div> lib/Driver/Driver.cpp | 14 ++++++++------</div><div> lib/ReaderWriter/ELF/ELFTargetInfo.cpp | 50 +++++++++++++++++++++++---------------------------</div><div> lib/ReaderWriter/ReaderLinkerScript.cpp | 18 +++++++++++++-----</div>
<div> test/elf/X86_64/Inputs/libfn-script.so | 1 +</div><div> test/elf/X86_64/Inputs/libscript.so | 1 +</div><div> test/elf/X86_64/dynlib-search.test | 8 ++++++--</div><div> 9 files changed, 65 insertions(+), 44 deletions(-)</div>
<div><br></div></div></div>