add --eh-frame-hdr arg for linking

master
David Cao 2019-12-24 14:26:09 -08:00 committed by Andrew Kelley
parent 437c6a4b7e
commit 599213463d
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
2 changed files with 3 additions and 0 deletions

View File

@ -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));

View File

@ -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));