From 4b69ce9b9121090ac42cf8fa20b949bbd9afff95 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 27 Aug 2020 21:44:41 +0930 Subject: PR26469 UBSAN: elflink.c:8742 shift exponent 6148914691236511722 PR 26469 * elflink.c: Include limits.h. (CHAR_BIT): Provide fallback define. (set_symbol_value): Correct complex reloc comment. (undefined_reference): Set bfd_error. (BINARY_OP_HEAD, BINARY_OP_TAIL): Split out from.. (BINARY_OP): ..this. (eval_symbol): Limit shifts. Force unsigned for left shift. Catch divide by zero. * configure.ac (AC_CHECK_HEADERS): Combine, sort and add limits.h. * configure: Regenerate. * config.in: Regenerate. --- bfd/config.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bfd/config.in') diff --git a/bfd/config.in b/bfd/config.in index c7be6c5..18fb8ae 100644 --- a/bfd/config.in +++ b/bfd/config.in @@ -143,6 +143,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_LIMITS_H + /* Define to 1 if the system has the type `long double'. */ #undef HAVE_LONG_DOUBLE -- cgit v1.1