aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/errors.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-07-21 16:57:18 +0930
committerAlan Modra <amodra@gmail.com>2023-07-26 10:23:27 +0930
commiteb14a8b4bfb767beebfb54d7911da4132b5c0f94 (patch)
tree09953b7f145bdd9c8c58dbfd1b2824a87efc4ea5 /gdbsupport/errors.h
parent0d8e39f5ce5530cf548ca8a70ff19a34991e43cb (diff)
downloadgdb-eb14a8b4bfb767beebfb54d7911da4132b5c0f94.zip
gdb-eb14a8b4bfb767beebfb54d7911da4132b5c0f94.tar.gz
gdb-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 'gdbsupport/errors.h')
0 files changed, 0 insertions, 0 deletions