[llvm-bugs] [Bug 36101] New: LLD COFF produces bad diagnostics for undefined /include symbol

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 25 14:35:42 PST 2018


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

            Bug ID: 36101
           Summary: LLD COFF produces bad diagnostics for undefined
                    /include symbol
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: COFF
          Assignee: unassignedbugs at nondot.org
          Reporter: smeenai at fb.com
                CC: compnerd at compnerd.org, llvm-bugs at lists.llvm.org,
                    peter at pcc.me.uk, rnk at google.com, ruiu at google.com,
                    zturner at google.com

% cat using.c
int main() { return 0; }
#pragma comment(linker, "/include:undefined")

% clang -target x86_64-windows-msvc -c using.c
$ lld-link -entry:main using.o
lld-link: error: <root>: undefined symbol: undefined

Undefined symbols from /include directives in object files are reported as
originating from the GC root, which is confusing and makes the user have to
manually hunt for the errant object file.

-- 
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/20180125/2d96b603/attachment.html>


More information about the llvm-bugs mailing list