Skip to content

[llvm-objdump][AArch32] Print target address in hexadecimal form #109280

Open
@hstk30-hw

Description

@hstk30-hw

As testcase llvm/test/MC/ARM/arm-macho-calls.s show

@ CHECK: _func:
@ CHECK:    bl #0 <_func+0x8>
@ CHECK:  ARM_RELOC_BR24 __text
@ CHECK:    bl #-12 <_func>
@ CHECK:  ARM_RELOC_BR24 _elsewhere
    .global _func
_func:
    bl Llocal_symbol
    bl _elsewhere
Llocal_symbol:
    bx lr

    .global _elsewhere
_elsewhere:
    bx lr

Not present the symbol name in assembly.

I hope it present like below:

@ CHECK: <_func>:
@ CHECK:    bl 0x8 <__text> @ imm = #0
@ CHECK:  ARM_RELOC_BR24 __text
@ CHECK:    bl 0x0 <_elsewhere> @ imm = #-12
@ CHECK:  ARM_RELOC_BR24 _elsewhere
    .global _func
_func:
    bl Llocal_symbol
    bl _elsewhere
Llocal_symbol:
    bx lr

    .global _elsewhere
_elsewhere:
    bx lr

That's what GNU objdump work. No symbol name make me confused sometimes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions