authorgravatar for gootvilig.davidhai@gmail.comd18g <gootvilig.davidhai@gmail.com> 2023-06-20 23:06:39+03:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-20 13:12:19-07:00
log939e4d81e11e801be4eb8fcaddbd27e6b8d3491c
treea093692d7575139d20ab22e0a9fbd3cafc0c6767
parentda1f457e3b602aa5ad617058ae7c4848ea1c825b

Update objcopy.zig

Fix `--only-section=` handling

1 files changed, 1 insertions(+), 1 deletions(-)

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