[llvm-bugs] [Bug 48807] New: lld-link module definition file reserved keywords are fatal errors but should be ignored
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jan 19 14:23:56 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=48807
Bug ID: 48807
Summary: lld-link module definition file reserved keywords are
fatal errors but should be ignored
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: COFF
Assignee: unassignedbugs at nondot.org
Reporter: brian at dbsoft.org
CC: llvm-bugs at lists.llvm.org
I write cross platform software and use the same module definition files on
both OS/2 and Windows.
This is possible because the linkers on OS/2 and Windows ignore keywords that
do not apply to the specific platform:
https://docs.microsoft.com/en-us/cpp/build/reference/reserved-words?view=msvc-160
Keywords such as WINDOWAPI which defines a graphical application on OS/2 and
possibly Windows or DESCRIPTION which adds a text description of the
application.
link.exe produces a warning such as this when encountering these keywords:
handyftp.def(3) : warning LNK4017: DESCRIPTION statement not supported for the
target platform; ignored
When lld-link.exe encounters these keywords it gives fatal errors such as:
lld-link: error: unknown directive: WINDOWAPI
or
lld-link: error: unknown directive: DESCRIPTION
The behavior for these keywords should be either silent ignore or warning, but
ignore... this is the example handyftp.def that works on both OS/2 and Windows
with other linkers:
NAME HANDYFTP WINDOWAPI
DESCRIPTION 'Handy FTP'
STACKSIZE 128000
--
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/20210119/8018d2d7/attachment.html>
More information about the llvm-bugs
mailing list