<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - clang should not throw away #ident directives"
href="https://llvm.org/bugs/show_bug.cgi?id=23365">23365</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang should not throw away #ident directives
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.5
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>fuzxxl@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>clang seems to throw away #ident directives without actually adding an
identification to the object file. #ident directives are useful for adding
version or copyright information to binaries and their usage is widespread
through the *BSD and Solaris code bases.
It would be great if clang could support #ident directives. The implementation
boils down to turning a directive in C or C++ source code of the form
#ident "something"
into assembly of the form
.ident "something"
on ELF targets at least, although the gas manual suggests that this directive
does something to a similar effect on other platforms as well. The general
mechanism to emit such assembly directives seems to exist already as clang is
able to emit a compiler identification string as an ident assembly directive.</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>