<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 --- - [powerpc64] Section .toc is not properly aligned"
href="http://llvm.org/bugs/show_bug.cgi?id=22711">22711</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[powerpc64] Section .toc is not properly aligned
</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>Backend: PowerPC
</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>powerpc64 elf: section ".toc" is not properly aligned.
Interestingly it works (by accident?) when using "-save-temps".
$ cat test.c
void test(int *a) {
switch (*a++) {
case 17: *a = 2; break;
case 13: *a = 3; break;
case 11: *a = 5; break;
case 7: *a = 7; break;
case 5: *a = 11; break;
case 3: *a = 13; break;
case 2: *a = 17; break;
}
}
// EOF
$ clang-3.6.0rc4 -target powerpc64-linux-gnu -Wall -W -c test.c
$ readelf --wide -S test.o | grep ' \.toc '
[ 9] .toc PROGBITS 0000000000000000 000198 000008 00 WA
0 0 1
##### now using "-save-temps":
$ clang-3.6.0rc4 -target powerpc64-linux-gnu -Wall -W -save-temps -c test.c
$ readelf --wide -S test.o | grep ' \.toc '
[ 9] .toc PROGBITS 0000000000000000 000198 000008 00 WA
0 0 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>