<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Report invalid -z flags as errors"
href="https://bugs.llvm.org/show_bug.cgi?id=44198">bug 44198</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>i@maskray.me
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Report invalid -z flags as errors"
href="https://bugs.llvm.org/show_bug.cgi?id=44198#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Report invalid -z flags as errors"
href="https://bugs.llvm.org/show_bug.cgi?id=44198">bug 44198</a>
from <span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span></b>
<pre>I believe lld already errors on unknown -z options. See
<a href="https://github.com/llvm/llvm-project/blob/master/lld/ELF/Driver.cpp#L431">https://github.com/llvm/llvm-project/blob/master/lld/ELF/Driver.cpp#L431</a>
static void checkZOptions(opt::InputArgList &args) {
for (auto *arg : args.filtered(OPT_z))
if (!isKnownZFlag(arg->getValue()))
error("unknown -z value: " + StringRef(arg->getValue()));
}
% clang -fuse-ld=lld a.o -Wl,-z,stack_size=0x1000
ld.lld: error: unknown -z value: stack_size=0x1000
clang-10: error: linker command failed with exit code 1 (use -v to see
invocation)
% ld.lld a.o -z stack_size=0x1000
ld.lld: error: unknown -z value: stack_size=0x1000
Can you check if there is some other issue with the build configuration?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>