aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-xtensa.c
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-11-16 05:01:58 +0000
committerSam James <sam@gentoo.org>2024-11-18 03:09:14 +0000
commit931e4f9b09512bb9012204bb2e4060ab6d9b9b46 (patch)
treee4f37307ec6832723d1d8c29028683e6bc0c1bea /bfd/elf32-xtensa.c
parent5b61986ac1683e93554e94795fa7527a911d7b74 (diff)
downloadgdb-931e4f9b09512bb9012204bb2e4060ab6d9b9b46.zip
gdb-931e4f9b09512bb9012204bb2e4060ab6d9b9b46.tar.gz
gdb-931e4f9b09512bb9012204bb2e4060ab6d9b9b46.tar.bz2
bfd: fix -std=gnu23 compatibility wrt _Bool
GCC trunk now defaults to -std=gnu23. We return false in a few places which can't work when true/false are a proper type (_Bool). Return NULL where appropriate instead of false. All callers handle this appropriately. ChangeLog: PR ld/32372 * elf32-ppc.c (ppc_elf_tls_setup): Return NULL. * elf32-xtensa.c (translate_reloc_bfd_fix): Ditto. (translate_reloc): Ditto. * elf64-ppc.c (update_local_sym_info): Ditto. * mach-o.c (bfd_mach_o_lookup_uuid_command): Ditto. * xsym.c (bfd_sym_read_name_table): Ditto.
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r--bfd/elf32-xtensa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index eb7fef9..58f79e5 100644
--- a/bfd/elf32-xtensa.c
+++ b/bfd/elf32-xtensa.c
@@ -10070,7 +10070,7 @@ translate_reloc_bfd_fix (reloc_bfd_fix *fix)
location. Otherwise, the relocation should move within the
section. */
- removed = false;
+ removed = NULL;
if (is_operand_relocation (fix->src_type))
{
/* Check if the original relocation is against a literal being
@@ -10141,7 +10141,7 @@ translate_reloc (const r_reloc *orig_rel, r_reloc *new_rel, asection *sec)
target_offset = orig_rel->target_offset;
- removed = false;
+ removed = NULL;
if (is_operand_relocation (ELF32_R_TYPE (orig_rel->rela.r_info)))
{
/* Check if the original relocation is against a literal being