From 43e05cd4f48b550023819d823fec02abf54e26d3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 12 Apr 2021 18:33:45 +0930 Subject: ENABLE_CHECKING in bfd, opcodes, binutils, ld gas already has this. Here it enables checking hash table type passed to elf_link_hash_lookup and elf_link_hash_traverse. bfd/ * elf-bfd.h (ENABLE_CHECKING): Define. (elf_link_hash_lookup): Abort if wrong type of hash table. (elf_link_hash_traverse): Likewise. * configure.ac (--enable-checking): Add support. * config.in: Regenerate. * configure: Regenerate. binutils/ * configure.ac (--enable-checking): Add support. * config.in: Regenerate. * configure: Regenerate. ld/ * configure.ac (--enable-checking): Add support. * config.in: Regenerate. * configure: Regenerate. opcodes/ * configure.ac (--enable-checking): Add support. * config.in: Regenerate. * configure: Regenerate. --- binutils/config.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'binutils/config.in') diff --git a/binutils/config.in b/binutils/config.in index 78b8a51..cc6aad1 100644 --- a/binutils/config.in +++ b/binutils/config.in @@ -19,6 +19,9 @@ /* Should strings use -a behavior by default? */ #undef DEFAULT_STRINGS_ALL +/* Define if you want run-time sanity checks. */ +#undef ENABLE_CHECKING + /* Handle .ctf type-info sections */ #undef ENABLE_LIBCTF -- cgit v1.1