[llvm-bugs] [Bug 44198] New: Report invalid -z flags as errors

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Dec 1 23:56:34 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=44198

            Bug ID: 44198
           Summary: Report invalid -z flags as errors
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: phosek at chromium.org
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org

We've noticed that lld currently ignores invalid -z flags: one of our
developers accidentally used -Wl,-z,stack_size=0x1000 instead of
-Wl,-z,stack-size=0x1000 and it took us a while to figure out why the flag
isn't taking effect.

This makes us concerned that there may be other -Wl,-z flags that _appear_ to
be set, but are not actually spelled correctly. It'd be useful to detect
invalid -z flags as errors to catch these cases.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191202/e5e13c21/attachment.html>


More information about the llvm-bugs mailing list