bindexplib: Always export executable symbols, even they are also readable
Previously bindexplib discarded read-only non-function symbols even in executable/code sections, but in some specific cases they could still mark functions. An example is provided by nop.asm in the AuoExportDll test, which exports a function only marked by a label. This symbol can be used from C/C++ code, but without this change it would result in an unresolved external symbol when built as a DLL on Windows.
Showing
- Source/bindexplib.cxx 2 additions, 1 deletionSource/bindexplib.cxx
- Tests/RunCMake/AutoExportDll/AutoExport.cmake 6 additions, 0 deletionsTests/RunCMake/AutoExportDll/AutoExport.cmake
- Tests/RunCMake/AutoExportDll/nop.asm 12 additions, 0 deletionsTests/RunCMake/AutoExportDll/nop.asm
- Tests/RunCMake/AutoExportDll/say.cxx 4 additions, 0 deletionsTests/RunCMake/AutoExportDll/say.cxx
Tests/RunCMake/AutoExportDll/nop.asm
0 → 100644
Please register or sign in to comment