aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler/objcopy.zig
AgeCommit message (Collapse)Author
2025-10-29objcopy: update for std.Io APIAndrew Kelley
2025-10-29fix some std.Io compilation failuresAndrew Kelley
2025-07-21objcopy: delete most of itAndrew Kelley
this code is not up to zig project standards tracked by #24522 oh, and fix not adjusting buffer seek position in std.fs.File.Reader
2025-07-19std.zig: finish updating to new I/O APIAndrew Kelley
2025-07-11Remove numerous things deprecated during the 0.14 release cycleLinus Groh
Basically everything that has a direct replacement or no uses left. Notable omissions: - std.ArrayHashMap: Too much fallout, needs a separate cleanup. - std.debug.runtime_safety: Too much fallout. - std.heap.GeneralPurposeAllocator: Lots of references to it remain, not a simple find and replace as "debug allocator" is not equivalent to "general purpose allocator". - std.io.Reader: Is being reworked at the moment. - std.unicode.utf8Decode(): No replacement, needs a new API first. - Manifest backwards compat options: Removal would break test data used by TestFetchBuilder. - panic handler needs to be a namespace: Many tests still rely on it being a function, needs a separate cleanup.
2025-07-07std.fmt: breaking API changesAndrew Kelley
added adapter to AnyWriter and GenericWriter to help bridge the gap between old and new API make std.testing.expectFmt work at compile-time std.fmt no longer has a dependency on std.unicode. Formatted printing was never properly unicode-aware. Now it no longer pretends to be. Breakage/deprecations: * std.fs.File.reader -> std.fs.File.deprecatedReader * std.fs.File.writer -> std.fs.File.deprecatedWriter * std.io.GenericReader -> std.io.Reader * std.io.GenericWriter -> std.io.Writer * std.io.AnyReader -> std.io.Reader * std.io.AnyWriter -> std.io.Writer * std.fmt.format -> std.fmt.deprecatedFormat * std.fmt.fmtSliceEscapeLower -> std.ascii.hexEscape * std.fmt.fmtSliceEscapeUpper -> std.ascii.hexEscape * std.fmt.fmtSliceHexLower -> {x} * std.fmt.fmtSliceHexUpper -> {X} * std.fmt.fmtIntSizeDec -> {B} * std.fmt.fmtIntSizeBin -> {Bi} * std.fmt.fmtDuration -> {D} * std.fmt.fmtDurationSigned -> {D} * {} -> {f} when there is a format method * format method signature - anytype -> *std.io.Writer - inferred error set -> error{WriteFailed} - options -> (deleted) * std.fmt.Formatted - now takes context type explicitly - no fmt string
2025-07-07std.io: move getStdIn, getStdOut, getStdErr functions to fs.FileAndrew Kelley
preparing to rearrange std.io namespace into an interface how to upgrade: std.io.getStdIn() -> std.fs.File.stdin() std.io.getStdOut() -> std.fs.File.stdout() std.io.getStdErr() -> std.fs.File.stderr()
2025-04-13std: eradicate u29 and embrace std.mem.AlignmentAndrew Kelley
2024-10-12objcopy: check both global and local when remappingAndrew Kelley
2024-10-12objcopy: update for std.elf type safetyAndrew Kelley
the new types make this code seem a bit strange
2024-10-05Merge pull request #21595 from alexrp/objcopy-seg-paddrAlex Rønne Petersen
`objcopy`: Use `p_paddr` from `PT_LOAD` even if zero.
2024-10-04objcopy: Use p_paddr from PT_LOAD even if zero.Alex Rønne Petersen
Fix suggested by @cclin0816. Closes #20019.
2024-10-0419009: zig objcopy: minor cleanupPatrick Wickenhaeuser
2024-10-0419009: zig objcopy: allow --add-section, --set-section-alignment and ↵Patrick Wickenhaeuser
--set-section-flags only if the target is an ELF file
2024-10-0419009: zig objcopy: fix typo in abort messagesPatrick Wickenhaeuser
2024-10-0419009: zig objcopy: integrate --add-section, --set-section-alignment and ↵Patrick Wickenhaeuser
--set-section-flags into std.Build.Step.ObjCopy
2024-10-0419009: zig objcopy: integrate section flags for --set-section-flags commandPatrick Wickenhaeuser
2024-10-0419009: zig objcopy: parse section flagsPatrick Wickenhaeuser
2024-10-0419009: zig objcopy: implement --set-section-alignmentPatrick Wickenhaeuser
2024-10-0419009: add --set-section-alignment and --set-section-flags arguments to zig ↵Patrick Wickenhaeuser
objcopy
2024-10-0419009: zig objcopy: add --add-section supportPatrick Wickenhaeuser
2024-09-12Replace deprecated default initializations with decl literalsLinus Groh
2024-08-19fix various issues related to Path handling in the compiler and stdRobin Voetter
A compilation build step for which the binary is not required could not be compiled previously. There were 2 issues that caused this: - The compiler communicated only the results of the emitted binary and did not properly communicate the result if the binary was not emitted. This is fixed by communicating the final hash of the artifact path (the hash of the corresponding /o/<hash> directory) and communicating this instead of the entire path. This changes the zig build --listen protocol to communicate hashes instead of paths, and emit_bin_path is accordingly renamed to emit_digest. - There was an error related to the default llvm object path when CacheUse.Whole was selected. I'm not really sure why this didn't manifest when the binary is also emitted. This was fixed by improving the path handling related to flush() and emitLlvmObject(). In general, this commit also improves some of the path handling throughout the compiler and standard library.
2024-07-12objcopy: use the fatal helper methodAndrew Kelley
2024-04-28std.posix.iovec: use .base and .len instead of .iov_base and .iov_lenNameless
2024-03-19extract std.posix from std.osAndrew Kelley
closes #5019
2024-03-02move `zig objcopy` command to be lazily builtAndrew Kelley
part of #19063