[PATCH] objdump: z80: show symbol names for addresses in disassembly

Jan Beulich jbeulich@suse.com
Fri Mar 27 14:23:22 GMT 2026


On 25.03.2026 11:12, Zeal8bit wrote:
> Hello,
> 
> While using objdump to disassemble Z80 ELF binaries, the output shows 
> addresses for relative (`prt_e`), absolute (`prt_nn`) jumps/calls and 
> memory load, but no symbol, even if symbol information is available.
> For example, objdump would output:
> 
> 00000000 <software_reset>:
>     0:   f3              di
>     1:   c3 31 01        jp 0x0131
> 
> instead of:
> 
> 00000000 <software_reset>:
>     0:   f3              di
>     1:   c3 31 01        jp 0x0131 <os_entry>
> 
> With this patch, the disassembly output will now include any existing 
> symbol corresponding to the addresses as shown above.
> 
> ---
>   opcodes/z80-dis.c | 13 +++++++++++++
>   1 file changed, 13 insertions(+)

Oh, also - unless you have a copyright assignment in place, you will also
want to sign-off on your change.

Jan


More information about the Binutils mailing list