]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd_elf_sym_name_raw
authorAlan Modra <amodra@gmail.com>
Fri, 4 Oct 2024 07:07:35 +0000 (16:37 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 4 Oct 2024 08:17:21 +0000 (17:47 +0930)
commit265757dc6e4d011a1b33ef1b3bfcd7f100f12f64
treedb66ff4c177d3169f82d6e46c628772848001a22
parent85ef4a5ed82fb5f71c78505acfac2104767f908d
bfd_elf_sym_name_raw

Many uses of bfd_elf_sym_name report errors.  They ought to not return
a NULL, as was the case prior to commit 68bbe1183379.  Introduce a new
function for cases where we'd like to know there is a problem with a
symbol st_name.

* elf-bfd.h  (bfd_elf_sym_name_raw): Declare.
* elf.c (bfd_elf_sym_name_raw): New function.
(bfd_elf_sym_name): Revert to behaviour prior to 68bbe1183379,
but returning "<null>" rather than "(null)" for st_name errors.
(group_signature): Use bfd_elf_sym_name_raw.
* elfcode.h (elf_slurp_symbol_table): Likewise.
* elf32-i386.c (elf_i386_scan_relocs): Whitespace.
bfd/elf-bfd.h
bfd/elf.c
bfd/elf32-i386.c
bfd/elfcode.h