mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
add --eh-frame-hdr arg for linking
This commit is contained in:
parent
437c6a4b7e
commit
599213463d
@ -144,6 +144,7 @@ fn constructLinkerArgsElf(ctx: *Context) !void {
|
||||
// lj->args.append(g->linker_script);
|
||||
//}
|
||||
try ctx.args.append("--gc-sections");
|
||||
try ctx.args.append("--eh-frame-hdr");
|
||||
|
||||
//lj->args.append("-m");
|
||||
//lj->args.append(getLDMOption(&g->zig_target));
|
||||
|
||||
@ -1647,6 +1647,8 @@ static void construct_linker_job_elf(LinkJob *lj) {
|
||||
lj->args.append("--gc-sections");
|
||||
}
|
||||
|
||||
lj->args.append("--eh-frame-hdr");
|
||||
|
||||
lj->args.append("-m");
|
||||
lj->args.append(getLDMOption(g->zig_target));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user