add --eh-frame-hdr conditionally

This commit is contained in:
David Cao authored and Andrew Kelley committed 2020-01-07 15:58:40 -05:00
1 parent 599213463d
commit 8e57dd57ca
8 files changed
+32 -2

No files matched your search

+3 -1
View File
@@ -1647,7 +1647,9 @@ static void construct_linker_job_elf(LinkJob *lj) {
lj->args.append("--gc-sections");
}
lj->args.append("--eh-frame-hdr");
if (g->link_eh_frame_hdr) {
lj->args.append("--eh-frame-hdr");
}
lj->args.append("-m");
lj->args.append(getLDMOption(g->zig_target));