<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - lld-link module definition file reserved keywords are fatal errors but should be ignored"
href="https://bugs.llvm.org/show_bug.cgi?id=48807">48807</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld-link module definition file reserved keywords are fatal errors but should be ignored
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>COFF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>brian@dbsoft.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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:
<a href="https://docs.microsoft.com/en-us/cpp/build/reference/reserved-words?view=msvc-160">https://docs.microsoft.com/en-us/cpp/build/reference/reserved-words?view=msvc-160</a>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>