ddovod / jet-live

c++ hot code reload for linux and macos
MIT License
411 stars 23 forks source link

Statics transfer in macos implementation #5

Closed ddovod closed 5 years ago

ddovod commented 5 years ago

In linux, there's st_size field in the Elf64_Sym structure. In macos, there's no size field in nlist_64 entry, so we need to distinguish symbol size somehow. Probably by sorting symbols and calculating distance between their addresses.

ddovod commented 5 years ago

7