zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 939e4d81e11e801be4eb8fcaddbd27e6b8d3491c (tree)
parent da1f457e3b602aa5ad617058ae7c4848ea1c825b
Author: d18g <gootvilig.davidhai@gmail.com>
Date:   Tue, 20 Jun 2023 23:06:39 +0300

Update objcopy.zig

Fix `--only-section=` handling
Diffstat:
Msrc/objcopy.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/objcopy.zig b/src/objcopy.zig @@ -66,7 +66,7 @@ pub fn cmdObjCopy( } else if (mem.eql(u8, arg, "--listen=-")) { listen = true; } else if (mem.startsWith(u8, arg, "--only-section=")) { - only_section = arg["--output-target=".len..]; + only_section = arg["--only-section=".len..]; } else if (mem.eql(u8, arg, "--pad-to")) { i += 1; if (i >= args.len) fatal("expected another argument after '{s}'", .{arg});