[llvm-bugs] [Bug 45796] New: Option /MANIFESTDEPENDENCY works only with single entry

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 4 13:24:43 PDT 2020


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

            Bug ID: 45796
           Summary: Option /MANIFESTDEPENDENCY works only with single
                    entry
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: COFF
          Assignee: unassignedbugs at nondot.org
          Reporter: pogorelsky.work at gmail.com
                CC: llvm-bugs at lists.llvm.org

In microsoft docs we can see that /MANIFESTDEPENDENCY option can have several
entries
(https://docs.microsoft.com/en-us/cpp/build/reference/manifestdependency-specify-manifest-dependencies?view=vs-2019):
"The linker will collect /MANIFESTDEPENDENCY comments, eliminate duplicate
entries, and then add the resulting XML string to the manifest file. If the
linker finds conflicting entries, the manifest file will become corrupt and the
application will fail to launch (an entry may be added to the event log,
indicating the source of the failure)."

I tried to set two /MANIFESTDEPENDENCY simultaneously, but it seems like
lld-linker handles only single entry of this option
("args.getLastArg(OPT_manifestdependency)",
https://github.com/llvm/llvm-project/blob/master/lld/COFF/Driver.cpp, str.
1521-1526). Seems like bug.

-- 
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/20200504/d385681a/attachment.html>


More information about the llvm-bugs mailing list