add --eh-frame-hdr arg for linking
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…
Reference in New Issue