add --no-rosegment cli option

this provides a workaround for #896
until valgrind adds support for clang/LLD
(equivalent to gcc/gold -rosegment)
This commit is contained in:
Andrew Kelley
2018-04-18 17:14:09 -04:00
parent f1f998e071
commit ca4341f7ba
3 changed files with 10 additions and 0 deletions

View File

@@ -217,6 +217,9 @@ static void construct_linker_job_elf(LinkJob *lj) {
lj->args.append(g->linker_script);
}
if (g->no_rosegment_workaround) {
lj->args.append("--no-rosegment");
}
lj->args.append("--gc-sections");
lj->args.append("-m");