aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-04-18 17:14:09 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-04-18 17:14:09 -0400
commitca4341f7ba845e7af3c6f2be52cd60c51ec6d68f (patch)
tree683912e826b022abb51016f09b2d23b74c7ffed8 /src/link.cpp
parentf1f998e07124f141312289ff82e0ad8d99af1cf7 (diff)
downloadzig-ca4341f7ba845e7af3c6f2be52cd60c51ec6d68f.tar.gz
zig-ca4341f7ba845e7af3c6f2be52cd60c51ec6d68f.zip
add --no-rosegment cli option
this provides a workaround for #896 until valgrind adds support for clang/LLD (equivalent to gcc/gold -rosegment)
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/link.cpp b/src/link.cpp
index 3c6e27e331..d454d77aae 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -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");