<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 - ARM: .ARM.extab sections not merged"
href="https://bugs.llvm.org/show_bug.cgi?id=33407">33407</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ARM: .ARM.extab sections not merged
</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>All
</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>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>compnerd@compnerd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>With `-ffunction-sections`, the `.ARM.extab` section entry is split around the
function boundaries. The linker needs to coalesce them into a single
`.ARM.extab` section. The ordering is important since the entries in the
`.ARM.extab` section are referenced from `.ARM.exidx` via the special
`ARM_PREL31` relocation type.
// RUN: %clang -target armv7-unknown-linux-gnueabi -ffunction-sections -c %s -o
- | %lld -shared - -o - | llvm-readobj -elf-output-style GNU -S -
int f();
int g() {
try {
return f();
} catch (...) {
return 1;
}
}
int h();
int i() {
try {
return h();
} catch (...) {
return 2;
}
}
ld.bfd:
[ 7] .ARM.extab PROGBITS 0000038c 00038c 000060 00 A 0 0
4
ld.gold:
[ 7] .ARM.extab PROGBITS 00000324 000324 000060 00 A 0 0
4
ld.lld:
[ 1] .ARM.extab.text._Z1gv PROGBITS 00000134 000134 000030 00 A 0
0 4
[ 3] .ARM.extab.text._Z1iv PROGBITS 0000017c 00017c 000030 00 A 0
0 4</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>