[llvm-bugs] [Bug 46701] New: llvm-objdump cannot identify the arm jump instruction.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 13 02:08:33 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46701

            Bug ID: 46701
           Summary: llvm-objdump cannot identify the arm jump instruction.
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-objdump
          Assignee: unassignedbugs at nondot.org
          Reporter: 2077213809 at qq.com
                CC: llvm-bugs at lists.llvm.org

I have the following code

extern void *memcpy(void *dst, const void *src, unsigned int size);
void test(char *a, const char *b, int c)
{
  memcpy(a, b, c);
}

Compiling
clang  -meabi gnu --target=arm-none-eabi -Oz -c test.c

disassembly
llvm-objdump -d test.o

00000000 <test>:
       0: fe ff ff ea                   b       #-8 <test>

the b instruction is not correct

when use gnu binutils, it's correct
arm-none-eabi-objdump -d test.o

00000000 <test>:
   0:   eafffffe        b       0 <memcpy>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200713/d17c9509/attachment.html>


More information about the llvm-bugs mailing list