diff options
author | Alan Modra <amodra@gmail.com> | 2023-07-21 16:57:18 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-07-26 10:23:27 +0930 |
commit | eb14a8b4bfb767beebfb54d7911da4132b5c0f94 (patch) | |
tree | 09953b7f145bdd9c8c58dbfd1b2824a87efc4ea5 /gprof/alpha.c | |
parent | 0d8e39f5ce5530cf548ca8a70ff19a34991e43cb (diff) | |
download | binutils-eb14a8b4bfb767beebfb54d7911da4132b5c0f94.zip binutils-eb14a8b4bfb767beebfb54d7911da4132b5c0f94.tar.gz binutils-eb14a8b4bfb767beebfb54d7911da4132b5c0f94.tar.bz2 |
[GOLD] reporting local symbol names
get_symbol_name currently returns "" for the usual STT_SECTION symbols
generated by gas. That's not very helpful, return the section name.
Demangle local symbols too, fixing an inconsistency in
issue_discarded_error where global symbols are demangled.
* object.cc (Sized_relobj_file::get_symbol_name): Return a
std::string. Return section name for STT_SECTION symbols with
zero st_name. Sanity check st_name, and don't run off the end
of an improperly terminated .strtab. Demangle sym names.
* object.h (Sized_relobj_file::get_symbol_name): Update decl.
* target-reloc.h (issue_discarded_error): Adjust.
* powerpc.cc (Target_powerpc::Relocate::relocate): Report reloc
type and symbol for relocation overflows.
Diffstat (limited to 'gprof/alpha.c')
0 files changed, 0 insertions, 0 deletions