]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd: fix -std=gnu23 compatibility wrt _Bool
authorSam James <sam@gentoo.org>
Sat, 16 Nov 2024 05:01:58 +0000 (05:01 +0000)
committerSam James <sam@gentoo.org>
Mon, 18 Nov 2024 03:09:14 +0000 (03:09 +0000)
commit931e4f9b09512bb9012204bb2e4060ab6d9b9b46
treee4f37307ec6832723d1d8c29028683e6bc0c1bea
parent5b61986ac1683e93554e94795fa7527a911d7b74
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.
bfd/elf32-ppc.c
bfd/elf32-xtensa.c
bfd/elf64-ppc.c
bfd/mach-o.c
bfd/xsym.c