[llvm-bugs] [Bug 37881] New: lld should give warning for unknown -z option

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 20 13:59:50 PDT 2018


            Bug ID: 37881
           Summary: lld should give warning for unknown -z option
           Product: lld
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: chh at google.com
                CC: llvm-bugs at lists.llvm.org

lld gives warning to unknown flag like -no-such-flag,
but does not give warning to unknown -z option like -z,no-such-flag.

$ ./clang  -fuse-ld=lld -Wl,-no-such-flag /tmp/m.o -o /tmp/a.out
.../bin/ld.lld: error: unknown argument: -no-such-flag
clang-7: error: linker command failed with exit code 1 (use -v to see

$ ./clang  -fuse-ld=lld -Wl,-z,no-such-flag /tmp/m.o -o /tmp/a.out

Some GNU linker -z options such as -z,global is not implemented in lld yet,
but lld does not give warning to such options.

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/20180620/20324705/attachment.html>

More information about the llvm-bugs mailing list