<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 - llvm-objdump print wrong function symbol of b instruction"
href="https://bugs.llvm.org/show_bug.cgi?id=46088">46088</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-objdump print wrong function symbol of b instruction
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>8.0
</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>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>499537630@qq.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>llvm-objdump print wrong symbol of b instruction(or other b instructions):
$ cat testb.s
.syntax unified
.section .text, "ax",%progbits
.globl _start
.type _start,%function
_start:
b func
.global func
.type func,%function
func = 0x2000
llvm-mc -arm-add-build-attributes -filetype=obj
-triple=armv7a-none-linux-gnueabi testb.s -o testb.o
$ llvm-objdump -d testb.o
testb.o: file format ELF32-arm-little
Disassembly of section .text:
0000000000000000 _start:
0: fe 07 00 ea b #8184 <_start+0x2000>
but it's wrong when adding triple:
llvm-objdump -d -triple=thumbv7a-linux-gnueabihf testb.o
testb.o: file format ELF32-arm-little
Disassembly of section .text:
0000000000000000 _start:
0: fe 07 00 ea b #8184 <_start+0x1ffc></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>