aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.ac
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-08-27 21:44:41 +0930
committerAlan Modra <amodra@gmail.com>2020-08-27 22:05:00 +0930
commit4b69ce9b9121090ac42cf8fa20b949bbd9afff95 (patch)
tree196408e74cea24562bea850fc2ff4a8c6850e383 /bfd/configure.ac
parent6fbd4a8e8baa7fe5adcaa1c11c885f741fccd250 (diff)
downloadgdb-4b69ce9b9121090ac42cf8fa20b949bbd9afff95.zip
gdb-4b69ce9b9121090ac42cf8fa20b949bbd9afff95.tar.gz
gdb-4b69ce9b9121090ac42cf8fa20b949bbd9afff95.tar.bz2
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.
Diffstat (limited to 'bfd/configure.ac')
-rw-r--r--bfd/configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/configure.ac b/bfd/configure.ac
index ae2de13..f62659a 100644
--- a/bfd/configure.ac
+++ b/bfd/configure.ac
@@ -243,8 +243,9 @@ AC_SUBST(BFD_HOSTPTR_T)
BFD_CC_FOR_BUILD
-AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h)
-AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h)
+AC_CHECK_HEADERS(alloca.h fcntl.h limits.h stddef.h stdlib.h string.h \
+ strings.h sys/file.h sys/resource.h sys/stat.h sys/time.h \
+ time.h unistd.h wchar.h wctype.h)
GCC_HEADER_STDINT(bfd_stdint.h)
AC_HEADER_TIME
AC_HEADER_DIRENT
@@ -1104,7 +1105,6 @@ AC_MSG_RESULT($bfd_file_ptr)
AC_SUBST(bfd_file_ptr)
AC_SUBST(bfd_ufile_ptr)
-dnl AC_CHECK_HEADERS(sys/mman.h)
AC_FUNC_MMAP
AC_CHECK_FUNCS(madvise mprotect)
case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in