aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure
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
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')
-rwxr-xr-xbfd/configure17
1 files changed, 3 insertions, 14 deletions
diff --git a/bfd/configure b/bfd/configure
index ece1656..a9c4fd9 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -13531,20 +13531,9 @@ $as_echo "$bfd_cv_build_exeext" >&6; }
fi
-for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h
-do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h
+for ac_header in 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
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"