<html>
<head>
<base href="http://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 --- - [MachO] Wrong indirect symbols"
href="http://llvm.org/bugs/show_bug.cgi?id=22850">22850</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[MachO] Wrong indirect symbols
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</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>MC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>markus@oberhumer.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>There seems to be a really bad bug with indirect symbols.
$ cat test.c
void bar1(void);
void bar2(void);
void bar3(void);
void bar4(void);
void foo(void) { bar1(); bar2(); bar3(); bar4(); }
// EOF
$ clang-3.6.0 -target powerpc-apple-darwin -fPIC -Wall -W -c test.c
$ otool -Iv test.o
test.o:
Indirect symbols for (__TEXT,__picsymbolstub1) 4 entries
address index name
0x00000040 1 _bar1
0x00000060 1 _bar1
0x00000080 2 _bar2
0x000000a0 2 _bar2
Indirect symbols for (__DATA,__la_symbol_ptr) 4 entries
address index name
0x000000c0 1 _bar1
0x000000c4 2 _bar2
0x000000c8 2 _bar2
0x000000cc 3 _bar3
$ otool -lv test.o | grep -i indirect
reserved1 0 (index into indirect symbol table)
reserved1 1 (index into indirect symbol table)
indirectsymoff 876
nindirectsyms 8</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>