Skip to content

Commit

Permalink
elf: do not error out on -z relro flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Jul 8, 2023
1 parent 13ef7b8 commit d534f4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Elf/Options.zig
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ pub fn parse(arena: Allocator, args: []const []const u8, ctx: anytype) !Options
} else if (std.mem.eql(u8, "uuid", value)) {
opts.build_id = .uuid;
} else {
ctx.fatal("TODO handle '--build-id={s}'", .{value});
ctx.fatal("invalid build-id value '--build-id={s}'", .{value});
}
} else if (p.flagAny("build-id")) {
opts.build_id = .none;
Expand Down Expand Up @@ -275,7 +275,6 @@ pub fn parse(arena: Allocator, args: []const []const u8, ctx: anytype) !Options
opts.z_text = false;
} else if (p.flagZ("relro")) {
opts.z_relro = true;
ctx.fatal("TODO handle '-z relro'", .{});
} else if (p.flagZ("norelro")) {
opts.z_relro = false;
} else {
Expand Down

0 comments on commit d534f4c

Please sign in to comment.