aboutsummaryrefslogtreecommitdiff
path: root/src/link/strtab.zig
AgeCommit message (Collapse)Author
2022-09-07coff: fix writing strtab to PE image fileJakub Konka
2022-08-30coff: allow for strtab in final PE imageJakub Konka
I believe this is going to be vital for section headers having names that require the use of a string table.
2022-07-22macho: rework symbol handling to match zld/ELFJakub Konka
Now, each object file will store a mutable table of symbols that it defines. Upon symbol resolution between object files, the symbol will be updated with a globally allocated section ordinal and address in virtual memory. If the object defines a globally available symbol, its location only (comprising of the symbol index and object index) will be stored in the globals map for easy access when relocating, etc. This approach cleans up the symbol management significantly, and matches the status quo used in zld/ELF. Additionally, this makes scoping symbol stabs easier too as they are now naturally contained within each object file.