HardenedBSD/usr.sbin/kldxref
Collin Funk 52a19a90de kldxref: Prefer sys/cdefs.h __unreachable over the builtin
The __builtin_unreachable macro provided by Clang and GCC is a hint to
the compiler used for optimization. The programs work fine even if the
compiler doesn't support it. The sys/cdefs.h has had __unreachable for
9 years (commit 732b31de5d). It expands
to the builtin if it is available. In the rare case that it is
unsupported it expands to a null statement so compilation does not
fail.

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Reviewed by: imp, freebsd@igalic.co
Pull Request: https://github.com/freebsd/freebsd-src/pull/1117
2024-04-12 16:39:25 -06:00
..
ef_aarch64.c
ef_amd64.c
ef_arm.c
ef_i386.c
ef_mips.c
ef_obj.c kldxref: Properly handle reading strings near the end of an ELF file 2024-03-18 17:01:23 -07:00
ef_powerpc.c
ef_riscv.c
ef.c kldxref: Properly handle reading strings near the end of an ELF file 2024-03-18 17:01:23 -07:00
ef.h kldxref: Properly handle reading strings near the end of an ELF file 2024-03-18 17:01:23 -07:00
elf.c kldxref: Prefer sys/cdefs.h __unreachable over the builtin 2024-04-12 16:39:25 -06:00
fileformat
kldxref.8
kldxref.c usr.sbin: Remove repeated words 2024-04-11 11:53:37 -06:00
Makefile
Makefile.depend