diff --git a/src/objcopy.zig b/src/objcopy.zig index b0ee6ee628136ebd32e06d124263b32a4a77288a..de2c00c811115b53009b4a50ee0d88721c0cddc5 100644 --- 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});