[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gprofng/30834] improve disassembly output for call and branch instr
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug gprofng/30834] improve disassembly output for call and branch instructions |
Date: |
Fri, 22 Sep 2023 02:01:00 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30834
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Vladimir Mezentsev
<vmezents@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7434de7ef9aef6307de8cb8244ca27a67dc99245
commit 7434de7ef9aef6307de8cb8244ca27a67dc99245
Author: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
Date: Wed Sep 20 13:22:12 2023 -0700
gprofng: 30834 improve disassembly output for call and branch instructions
This patch makes the gprofng disassembler to emit, e.g.
call fprintf@plt [ 0x401060, .-0x49c]
instead of
call 0xfffffffffffffb64
I use bfd_get_synthetic_symtab() to get function names in the .plt section.
I have not yet modified Elf-reader in gprofng to remove parsing of .symtab
or
.dynsym sections. But we plan to do it.
gprofng/ChangeLog
2023-09-20 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
PR gprofng/30834
* src/Disasm.cc: Show the function name in the call instruction
and the relative address in the branch instruction. Remove unused
code.
* src/Disasm.h (map_PC_to_func, get_funcname_in_plt): New
functions.
* src/Elf.cc: Get function names for the .plt section.
* src/Elf.h (get_funcname_in_plt, get_bfd_symbols): New functions.
* src/Stabs.cc: Add pltSym to SymLst. Remove the conversion to
uint32_t.
--
You are receiving this mail because:
You are on the CC list for the bug.