<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 --- - Incorrect __USER_LABEL_PREFIX__ for the triple arm-none-*eabi*"
href="https://llvm.org/bugs/show_bug.cgi?id=25508">25508</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect __USER_LABEL_PREFIX__ for the triple arm-none-*eabi*
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>normal
</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>olivier@labapart.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Symbols are not prefixed by '_' (ie: __USER_LABEL_PREFIX__ = '_') for ARM EABI.
>From the document 'ELF for ARM architecture document', 4.5.4 Symbol names
A symbol that names a C or assembly language entity should have the name of
that entity. For example, a C function called calculate generates a symbol
called calculate (not _calculate).
See
<a href="http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044e/IHI0044E_aaelf.pdf">http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044e/IHI0044E_aaelf.pdf</a>
Linux system returns the correct __USER_LABEL_PREFIX__:
$ clang-3.8 -E -dM -ffreestanding -target arm-linux-eabi - < /dev/null | grep
__USER_LABEL_PREFIX__
#define __USER_LABEL_PREFIX__
$ clang-3.8 -E -dM -ffreestanding -target arm-linux-gnueabihf - < /dev/null |
grep __USER_LABEL_PREFIX__
#define __USER_LABEL_PREFIX__
while the 'none' system returns '_':
$ clang-3.8 -E -dM -ffreestanding -target arm-none-eabi - < /dev/null | grep
__USER_LABEL_PREFIX__
#define __USER_LABEL_PREFIX__ _
$ clang-3.8 -E -dM -ffreestanding -target arm-none-gnueabihf - < /dev/null |
grep __USER_LABEL_PREFIX__
#define __USER_LABEL_PREFIX__ _</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>