aboutsummaryrefslogtreecommitdiff
path: root/lib/std/coff.zig
AgeCommit message (Collapse)Author
2022-08-31coff: add import table definitionsJakub Konka
2022-08-30coff: add base relocation related typesJakub Konka
2022-08-30coff: move Symtab and Strtab out of coff.CoffJakub Konka
This should ease interfacing with different std.coff functionalities.
2022-08-30Merge pull request #12677 from ziglang/coff-linkerJakub Konka
coff: initial rewrite of the COFF/PE linker
2022-08-30coff: write headers to fileJakub Konka
2022-08-30coff: reorganize the linkerJakub Konka
2022-08-28coff: publicize and flesh out more image constantsWilliam Sengir
2022-08-28coff: fix reading COFF header offsetWilliam Sengir
2022-08-26coff: do not pull in std.log into coff.zig definitionsJakub Konka
2022-08-24fix coff.zig with const qualifier convert problemmax
2022-08-23coff: improve default COFF/PE object parserJakub Konka
We now do not allocate memory for headers and other metadata unless requested by the caller. Instead, we read-in the entire contents of the image into memory and operate on pointers and casts wherever possible. I have a left a TODO to hook up Windows' memory-mapped API here in-place of standard `readToEndAlloc` which should be more memory proof on memory constrained hosts. This commit also supplements our `std.coff` with a lot missing basic extern structs required to make our COFF linker.
2022-08-19coff: change improperly used packed struct into extern structJakub Konka
2022-04-28std.coff: parse out codebase and entrypoint from optionalheaderErik Hugne
2022-04-21debug: fix resource (de)allocation for Elf and Coff targetsJakub Konka
With this change, it is now possible to safely call `var di = std.debug.openSelfDebugInfo(gpa)`. Calling then `di.deinit()` on the object will correctly free all allocated resources. Ensure we store the result of `mmap` with correct alignment.
2022-03-15std: Add elf.EM, coff.MachineType to Target.CPU.Arch conversionsTom Maenan Read Cutting
target.Arch already supports finding the correct encoding for either target, so being able to do the inverse has use cases for when parsing files of an unknown target (i.e. for zar).
2021-11-30allocgate: std Allocator interface refactorLee Cannon
2021-11-01Update ensureTotalCapacity to ensureTotalCapacityPrecise where it makes senseRyan Liptak
These calls are all late-initialization of ArrayList's that were initialized outside the current scope. This allows us to still get the potential memory-saving benefits of the 'precision' of initCapacity.
2021-10-04migrate from `std.Target.current` to `@import("builtin").target`Andrew Kelley
closes #9388 closes #9321
2021-09-19Update all ensureCapacity calls to the relevant non-deprecated versionRyan Liptak
2021-08-24remove redundant license headers from zig standard libraryAndrew Kelley
We already have a LICENSE file that covers the Zig Standard Library. We no longer need to remind everyone that the license is MIT in every single file. Previously this was introduced to clarify the situation for a fork of Zig that made Zig's LICENSE file harder to find, and replaced it with their own license that required annual payments to their company. However that fork now appears to be dead. So there is no need to reinforce the copyright notice in every single file.
2021-06-18Add support for reading DWARF debug information from COFF filesMatt Chudleigh
2021-06-18Support long section names in COFF filesMatt Chudleigh
2021-04-15std: change `@import("builtin")` to `std.builtin`Andrew Kelley
2021-02-24zig fmt the std libAndrew Kelley
2021-01-07Reduce use of deprecated IO typesJay Petacat
Related: #4917
2020-12-31Year++Frank Denis
2020-11-07remove deprecated uses of ArrayList.spanJosh Holland
2020-09-04Completed basic PE linker for stage2Alexandros Naskos
Added std.coff.MachineType Added image characteristic and section flag valued to std.coff Added std.Target.Cpu.Arch.toCoffMachine Fixed stage2 --watch flag on windows
2020-08-20add license header to all std lib filesAndrew Kelley
add SPDX license identifier copyright ownership is zig contributors
2020-04-02new ArrayList API: fix everything elsexackus
2020-03-30std lib API deprecations for the upcoming 0.6.0 releaseAndrew Kelley
See #3811
2020-03-10fix regressions found by test suiteAndrew Kelley
2019-11-29fix windows std lib regressionsAndrew Kelley
2019-11-21add cast to not hit #2561Vexu
2019-09-25mv std/ lib/Andrew Kelley
that's all this commit does. further commits will fix cli flags and such. see #2221