This change adds basic support for shared library dependencies
via the dylink section.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 29029 Build 29028: arc lint + arc unit
Event Timeline
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.
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 | 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. |
LGTM with the previous comments fixed.
llvm/lib/Object/WasmObjectFile.cpp | ||
---|---|---|
327 | Got it. We eventually need a test, but it doesn't have to be at this time. |
Maybe it is better to avoid auto and make it explicit as SharedFile *