[PATCH] objdump: Show correct file offsets for symbols

Jan Beulich jbeulich@suse.com
Fri Oct 24 10:45:21 GMT 2025


On 16.10.2025 19:00, Ben Kallus wrote:
> --- a/binutils/objdump.c
> +++ b/binutils/objdump.c
> @@ -1738,7 +1738,7 @@ objdump_print_addr (bfd_vma vma,
>    if (!skip_find)
>      sym = find_symbol_for_address (vma, inf, &place);
>  
> -  objdump_print_addr_with_sym (aux->abfd, inf->section, sym, vma, inf,
> +  objdump_print_addr_with_sym (aux->abfd, bfd_asymbol_section (sym), sym, vma, inf,
>  			       skip_zeroes);
>  
>    /* If requested, display any extra symbols at this address.  */

Before committing I put this through some wider testing. Sadly for at least
aarch64, arm, and mips it leads to various objdump crashes when running the
testsuite. I can only guess that some unexpected NULLs are coming into play.

Jan


More information about the Binutils mailing list