mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
macho: implement object relinking in stage2
* In watch mode, when changing the C source, we will trigger complete relinking of objects, dylibs and archives (atoms coming from the incremental updates stay put however). This means, we need to undo metadata populated when linking in objects, archives and dylibs. * Remove unused splitting section into atoms bit. This optimisation will probably be best rewritten from scratch once self-hosted matures so parking the idea for now. Also, for easier management of atoms spawned from the Object file, keep the atoms subgraph as part of the Object file struct. * Remove obsolete ref to static initializers in object struct. * Implement handling of global symbol collision in updateDeclExports.
This commit is contained in:
parent
506f24cac2
commit
983d6dcd9e
3 changed files with 368 additions and 327 deletions
Loading…
Add table
Add a link
Reference in a new issue