This change adds basic support for shared library dependencies
via the dylink section.
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
Comment Actions
Is this ready for review? It doesn't seem to create a valid executable though, as there's no code to emit filenames of shared object files.
Comment Actions
This change is now ready for review. Please note that this is only the most simple support for .so file. All it does is add each library to the "needed" section, it doesn't do any symbol resolution against the shared libraries yet.
llvm/lib/Object/WasmObjectFile.cpp | ||
---|---|---|
327 ↗ | (On Diff #190211) | Its fixing a bug that isSharedLibrary(), which is only ever used by lld, was always returning false. I guess at least some other tool such as objdump should probably be calling that and displaying different output for shared libs. |
Comment Actions
LGTM with the previous comments fixed.
llvm/lib/Object/WasmObjectFile.cpp | ||
---|---|---|
327 ↗ | (On Diff #190211) | Got it. We eventually need a test, but it doesn't have to be at this time. |