mirror of
https://github.com/ziglang/zig.git
synced 2025-12-13 01:33:09 +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=-")) {
|
||||
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});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user