mirror of
https://github.com/ziglang/zig.git
synced 2025-12-15 10:43:08 +00:00
Update objcopy.zig
Fix `--only-section=` handling
This commit is contained in:
parent
da1f457e3b
commit
939e4d81e1
@ -66,7 +66,7 @@ pub fn cmdObjCopy(
|
|||||||
} else if (mem.eql(u8, arg, "--listen=-")) {
|
} else if (mem.eql(u8, arg, "--listen=-")) {
|
||||||
listen = true;
|
listen = true;
|
||||||
} else if (mem.startsWith(u8, arg, "--only-section=")) {
|
} 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")) {
|
} else if (mem.eql(u8, arg, "--pad-to")) {
|
||||||
i += 1;
|
i += 1;
|
||||||
if (i >= args.len) fatal("expected another argument after '{s}'", .{arg});
|
if (i >= args.len) fatal("expected another argument after '{s}'", .{arg});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user