rss

shared libraries "lib.so and lib.dll" file: minimal how to

This post is a kind of minimal 'how to' for the shared libraries : ex. under linux mylib.so or under windows my.dll

Windows





Linux

  • List library exported symbols (then functions)
readelf -s /usr/lib/libspreadsheet.so |grep workbook_sheet
nm -D /usr/lib/libspreadsheet.so |grep workbook_sheet
objdump -T /usr/lib/libspreadsheet.so |grep workbook_sheet



  • List library dependencies

readelf -d /usr/lib/libspreadsheet.so|grep NEEDED

Aucun commentaire:

Enregistrer un commentaire