diff options
author | Sam James <sam@gentoo.org> | 2024-11-16 05:01:58 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-11-18 03:09:14 +0000 |
commit | 931e4f9b09512bb9012204bb2e4060ab6d9b9b46 (patch) | |
tree | e4f37307ec6832723d1d8c29028683e6bc0c1bea /bfd/elf32-ppc.c | |
parent | 5b61986ac1683e93554e94795fa7527a911d7b74 (diff) | |
download | binutils-931e4f9b09512bb9012204bb2e4060ab6d9b9b46.zip binutils-931e4f9b09512bb9012204bb2e4060ab6d9b9b46.tar.gz binutils-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-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index a5370a0..8c89ae1 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -4352,7 +4352,7 @@ ppc_elf_tls_setup (bfd *obfd, struct bfd_link_info *info) _bfd_elf_strtab_delref (elf_hash_table (info)->dynstr, opt->dynstr_index); if (!bfd_elf_link_record_dynamic_symbol (info, opt)) - return false; + return NULL; } htab->tls_get_addr = opt; } |