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

            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: unassignedb...@nondot.org
          Reporter: c...@google.com
                CC: llvm-bugs@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
invocation)

$ ./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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to