~/talk

Dynamically Loaded Libraries Outside the Standard

Talkat CppCon 2021 · on Friday, 2021-10-29· at 14:45· Online D, online· [devops-and-delivery]
links:none on file
slides:none on file

Explains practical techniques for using dlopen/LoadLibrary and tools like dumpbin/objdump and Application Verifier to diagnose real problems: delay-loading can make function addresses change at runtime, symbol resolution and casting rules are undefined across languages, plugins are built as drop-in DSOs exposing factory instances (demo finds multiple Python installs via exported instances and works), and live update/unload breaks TLS destructors because vendor no-delete flags and refcounting prevent safe unloading.

AI-written summary · about

  1. 0:00Intro
  2. 0:29Dynamic Link Libraries
  3. 0:45Dynamic Linking vs Dynamic Loading
  4. 2:23MacOS Bundles
  5. 4:07Dynamic Loading Libraries
  6. 6:00Dynamic Loading APIs
  7. 7:21Function Pointer Declaration
  8. 8:35Win32 API Example
  9. 9:24OBG Dump
  10. 9:41How to use it
  11. 9:57Reference Count
  12. 11:40Use Cases
  13. 11:56Dependent Libraries
  14. 12:11Explanation of Dependent Libraries
  15. 13:20Explanation of Dynamic Linking
  16. 14:21Dynamic Linking with Delay Loading
  17. 14:53Crossplatform Delay Loading
  18. 16:44Surprise of Daily Loading
  19. 18:45Dynamic Loading API
  20. 19:07Short Answer
  21. 19:38A Pointer
  22. 20:06Dynamic Entities
  23. 20:38Function Interface
  24. 22:35Dynamic Loading
  25. 23:00Declaration
  26. 23:37Two Loadable Libraries
  27. 24:16API Compatible
  28. 24:48Example
  29. 27:24Plugin System
  30. 30:51Plugin
  31. 32:26Open Plugins
  32. 32:43Map Function
  33. 32:57Demo
  34. 33:30Questions
  35. 36:51Unloading
  36. 38:51Object Model
  37. 40:33Threat Local Storage
  38. 42:09Memory Locker
  39. 47:18Question
  40. 48:49Application Verifier
  41. 49:25Application Verifier UI
  42. 50:39Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.