Compare commits
No commits in common. "c8" and "c10s" have entirely different histories.
@ -1,2 +0,0 @@
|
|||||||
cd45a512af1c8a508976c1beb4f5825b3bb89f4d SOURCES/binutils-2.32.tar.xz
|
|
||||||
d3e5c9fc829ed40648110da6fe46c2fb1ed8aadb SOURCES/standards.info.gz
|
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
SOURCES/binutils-2.32.tar.xz
|
|
||||||
SOURCES/standards.info.gz
|
|
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Package Not Available
|
||||||
|
This package is not available on CentOS Stream 10.
|
||||||
|
It may be available on another branch.
|
@ -1,38 +0,0 @@
|
|||||||
# Generate OUTPUT_FORMAT line for .so files from the system linker output.
|
|
||||||
# Imported from glibc/Makerules.
|
|
||||||
|
|
||||||
/ld.*[ ]-E[BL]/b f
|
|
||||||
/collect.*[ ]-E[BL]/b f
|
|
||||||
/OUTPUT_FORMAT[^)]*$/{N
|
|
||||||
s/\n[ ]*/ /
|
|
||||||
}
|
|
||||||
t o
|
|
||||||
: o
|
|
||||||
s/^.*OUTPUT_FORMAT(\([^,]*\), \1, \1).*$/OUTPUT_FORMAT(\1)/
|
|
||||||
t q
|
|
||||||
s/^.*OUTPUT_FORMAT(\([^,]*\), \([^,]*\), \([^,]*\)).*$/\1,\2,\3/
|
|
||||||
t s
|
|
||||||
s/^.*OUTPUT_FORMAT(\([^,)]*\).*$)/OUTPUT_FORMAT(\1)/
|
|
||||||
t q
|
|
||||||
d
|
|
||||||
: s
|
|
||||||
s/"//g
|
|
||||||
G
|
|
||||||
s/\n//
|
|
||||||
s/^\([^,]*\),\([^,]*\),\([^,]*\),B/OUTPUT_FORMAT(\2)/p
|
|
||||||
s/^\([^,]*\),\([^,]*\),\([^,]*\),L/OUTPUT_FORMAT(\3)/p
|
|
||||||
s/^\([^,]*\),\([^,]*\),\([^,]*\)/OUTPUT_FORMAT(\1)/p
|
|
||||||
/,/s|^|*** BUG in libc/scripts/output-format.sed *** |p
|
|
||||||
q
|
|
||||||
: q
|
|
||||||
s/"//g
|
|
||||||
p
|
|
||||||
q
|
|
||||||
: f
|
|
||||||
s/^.*[ ]-E\([BL]\)[ ].*$/,\1/
|
|
||||||
t h
|
|
||||||
s/^.*[ ]-E\([BL]\)$/,\1/
|
|
||||||
t h
|
|
||||||
d
|
|
||||||
: h
|
|
||||||
h
|
|
@ -1,236 +0,0 @@
|
|||||||
diff -rcp ../binutils-2.20.51.0.7.original/bfd/configure ./bfd/configure
|
|
||||||
--- a/bfd/configure 2010-04-08 14:53:48.000000000 +0100
|
|
||||||
+++ b/bfd/configure 2010-04-08 14:56:50.000000000 +0100
|
|
||||||
@@ -10762,10 +10762,34 @@
|
|
||||||
# before this can be enabled.
|
|
||||||
hardcode_into_libs=yes
|
|
||||||
|
|
||||||
+ # find out which ABI we are using
|
|
||||||
+ libsuff=
|
|
||||||
+ case "$host_cpu" in
|
|
||||||
+ x86_64*|s390*|powerpc*|ppc*|sparc*)
|
|
||||||
+ echo 'int i;' > conftest.$ac_ext
|
|
||||||
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
||||||
+ (eval $ac_compile) 2>&5
|
|
||||||
+ ac_status=$?
|
|
||||||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
+ (exit $ac_status); }; then
|
|
||||||
+ case `/usr/bin/file conftest.$ac_objext` in
|
|
||||||
+ *64-bit*)
|
|
||||||
+ libsuff=64
|
|
||||||
+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
|
|
||||||
+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
|
||||||
+ fi
|
|
||||||
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+ fi
|
|
||||||
+ rm -rf conftest*
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+
|
|
||||||
# Append ld.so.conf contents to the search path
|
|
||||||
if test -f /etc/ld.so.conf; then
|
|
||||||
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
|
||||||
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
||||||
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
||||||
diff -rcp ../binutils-2.20.51.0.7.original/binutils/configure ./binutils/configure
|
|
||||||
--- a/binutils/configure 2010-04-08 14:53:45.000000000 +0100
|
|
||||||
+++ b/binutils/configure 2010-04-08 14:56:21.000000000 +0100
|
|
||||||
@@ -10560,10 +10560,34 @@
|
|
||||||
# before this can be enabled.
|
|
||||||
hardcode_into_libs=yes
|
|
||||||
|
|
||||||
+ # find out which ABI we are using
|
|
||||||
+ libsuff=
|
|
||||||
+ case "$host_cpu" in
|
|
||||||
+ x86_64*|s390*|powerpc*|ppc*|sparc*)
|
|
||||||
+ echo 'int i;' > conftest.$ac_ext
|
|
||||||
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
||||||
+ (eval $ac_compile) 2>&5
|
|
||||||
+ ac_status=$?
|
|
||||||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
+ (exit $ac_status); }; then
|
|
||||||
+ case `/usr/bin/file conftest.$ac_objext` in
|
|
||||||
+ *64-bit*)
|
|
||||||
+ libsuff=64
|
|
||||||
+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
|
|
||||||
+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
|
||||||
+ fi
|
|
||||||
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+ fi
|
|
||||||
+ rm -rf conftest*
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+
|
|
||||||
# Append ld.so.conf contents to the search path
|
|
||||||
if test -f /etc/ld.so.conf; then
|
|
||||||
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
|
||||||
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
||||||
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
||||||
diff -rcp ../binutils-2.20.51.0.7.original/gas/configure ./gas/configure
|
|
||||||
--- a/gas/configure 2010-04-08 14:53:47.000000000 +0100
|
|
||||||
+++ b/gas/configure 2010-04-08 14:57:24.000000000 +0100
|
|
||||||
@@ -10547,10 +10547,34 @@
|
|
||||||
# before this can be enabled.
|
|
||||||
hardcode_into_libs=yes
|
|
||||||
|
|
||||||
+ # find out which ABI we are using
|
|
||||||
+ libsuff=
|
|
||||||
+ case "$host_cpu" in
|
|
||||||
+ x86_64*|s390*|powerpc*|ppc*|sparc*)
|
|
||||||
+ echo 'int i;' > conftest.$ac_ext
|
|
||||||
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
||||||
+ (eval $ac_compile) 2>&5
|
|
||||||
+ ac_status=$?
|
|
||||||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
+ (exit $ac_status); }; then
|
|
||||||
+ case `/usr/bin/file conftest.$ac_objext` in
|
|
||||||
+ *64-bit*)
|
|
||||||
+ libsuff=64
|
|
||||||
+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
|
|
||||||
+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
|
||||||
+ fi
|
|
||||||
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+ fi
|
|
||||||
+ rm -rf conftest*
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+
|
|
||||||
# Append ld.so.conf contents to the search path
|
|
||||||
if test -f /etc/ld.so.conf; then
|
|
||||||
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
|
||||||
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
||||||
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
||||||
diff -rcp ../binutils-2.20.51.0.7.original/gprof/configure ./gprof/configure
|
|
||||||
--- a/gprof/configure 2010-04-08 14:53:45.000000000 +0100
|
|
||||||
+++ b/gprof/configure 2010-04-08 14:57:50.000000000 +0100
|
|
||||||
@@ -10485,10 +10485,34 @@
|
|
||||||
# before this can be enabled.
|
|
||||||
hardcode_into_libs=yes
|
|
||||||
|
|
||||||
+ # find out which ABI we are using
|
|
||||||
+ libsuff=
|
|
||||||
+ case "$host_cpu" in
|
|
||||||
+ x86_64*|s390*|powerpc*|ppc*|sparc*)
|
|
||||||
+ echo 'int i;' > conftest.$ac_ext
|
|
||||||
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
||||||
+ (eval $ac_compile) 2>&5
|
|
||||||
+ ac_status=$?
|
|
||||||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
+ (exit $ac_status); }; then
|
|
||||||
+ case `/usr/bin/file conftest.$ac_objext` in
|
|
||||||
+ *64-bit*)
|
|
||||||
+ libsuff=64
|
|
||||||
+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
|
|
||||||
+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
|
||||||
+ fi
|
|
||||||
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+ fi
|
|
||||||
+ rm -rf conftest*
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+
|
|
||||||
# Append ld.so.conf contents to the search path
|
|
||||||
if test -f /etc/ld.so.conf; then
|
|
||||||
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
|
||||||
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
||||||
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
||||||
diff -rcp ../binutils-2.20.51.0.7.original/ld/configure ./ld/configure
|
|
||||||
--- a/ld/configure 2010-04-08 14:53:44.000000000 +0100
|
|
||||||
+++ b/ld/configure 2010-04-08 14:58:21.000000000 +0100
|
|
||||||
@@ -10966,10 +10966,34 @@
|
|
||||||
# before this can be enabled.
|
|
||||||
hardcode_into_libs=yes
|
|
||||||
|
|
||||||
+ # find out which ABI we are using
|
|
||||||
+ libsuff=
|
|
||||||
+ case "$host_cpu" in
|
|
||||||
+ x86_64*|s390*|powerpc*|ppc*|sparc*)
|
|
||||||
+ echo 'int i;' > conftest.$ac_ext
|
|
||||||
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
||||||
+ (eval $ac_compile) 2>&5
|
|
||||||
+ ac_status=$?
|
|
||||||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
+ (exit $ac_status); }; then
|
|
||||||
+ case `/usr/bin/file conftest.$ac_objext` in
|
|
||||||
+ *64-bit*)
|
|
||||||
+ libsuff=64
|
|
||||||
+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
|
|
||||||
+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
|
||||||
+ fi
|
|
||||||
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+ fi
|
|
||||||
+ rm -rf conftest*
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+
|
|
||||||
# Append ld.so.conf contents to the search path
|
|
||||||
if test -f /etc/ld.so.conf; then
|
|
||||||
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
|
||||||
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
||||||
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
||||||
Only in .: .#libtool.m4
|
|
||||||
Only in .: #libtool.m4#
|
|
||||||
diff -rcp ../binutils-2.20.51.0.7.original/opcodes/configure ./opcodes/configure
|
|
||||||
--- a/opcodes/configure 2010-04-08 14:53:45.000000000 +0100
|
|
||||||
+++ b/opcodes/configure 2010-04-08 14:59:10.000000000 +0100
|
|
||||||
@@ -10496,10 +10496,34 @@
|
|
||||||
# before this can be enabled.
|
|
||||||
hardcode_into_libs=yes
|
|
||||||
|
|
||||||
+ # find out which ABI we are using
|
|
||||||
+ libsuff=
|
|
||||||
+ case "$host_cpu" in
|
|
||||||
+ x86_64*|s390*|powerpc*|ppc*|sparc*)
|
|
||||||
+ echo 'int i;' > conftest.$ac_ext
|
|
||||||
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
||||||
+ (eval $ac_compile) 2>&5
|
|
||||||
+ ac_status=$?
|
|
||||||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
+ (exit $ac_status); }; then
|
|
||||||
+ case `/usr/bin/file conftest.$ac_objext` in
|
|
||||||
+ *64-bit*)
|
|
||||||
+ libsuff=64
|
|
||||||
+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
|
|
||||||
+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
|
||||||
+ fi
|
|
||||||
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+ fi
|
|
||||||
+ rm -rf conftest*
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+
|
|
||||||
# Append ld.so.conf contents to the search path
|
|
||||||
if test -f /etc/ld.so.conf; then
|
|
||||||
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
|
||||||
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
||||||
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
@ -1,28 +0,0 @@
|
|||||||
--- a/bfd/bfd-in.h 2012-08-02 10:56:34.561769686 +0100
|
|
||||||
+++ b/bfd/bfd-in.h 2012-08-02 11:13:27.134797755 +0100
|
|
||||||
@@ -25,11 +25,6 @@
|
|
||||||
#ifndef __BFD_H_SEEN__
|
|
||||||
#define __BFD_H_SEEN__
|
|
||||||
|
|
||||||
-/* PR 14072: Ensure that config.h is included first. */
|
|
||||||
-#if !defined PACKAGE && !defined PACKAGE_VERSION
|
|
||||||
-#error config.h must be included before this header
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
--- a/bfd/bfd-in2.h 2012-08-02 10:56:34.349769680 +0100
|
|
||||||
+++ b/bfd/bfd-in2.h 2012-08-02 11:13:40.015798113 +0100
|
|
||||||
@@ -32,11 +32,6 @@
|
|
||||||
#ifndef __BFD_H_SEEN__
|
|
||||||
#define __BFD_H_SEEN__
|
|
||||||
|
|
||||||
-/* PR 14072: Ensure that config.h is included first. */
|
|
||||||
-#if !defined PACKAGE && !defined PACKAGE_VERSION
|
|
||||||
-#error config.h must be included before this header
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
@ -1,38 +0,0 @@
|
|||||||
diff -up binutils-2.25.orig/bfd/configure.ac binutils-2.25/bfd/configure.ac
|
|
||||||
--- binutils-2.25.orig/bfd/configure.ac 2014-12-24 10:34:45.590491143 +0000
|
|
||||||
+++ binutils-2.25/bfd/configure.ac 2014-12-24 10:36:12.997981992 +0000
|
|
||||||
@@ -183,11 +183,13 @@ if test "x${ac_cv_sizeof_long}" = "x8";
|
|
||||||
BFD_HOST_64BIT_LONG=1
|
|
||||||
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
|
|
||||||
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
|
|
||||||
-elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
|
|
||||||
+fi
|
|
||||||
+if test "x${ac_cv_sizeof_long_long}" = "x8"; then
|
|
||||||
BFD_HOST_64BIT_LONG_LONG=1
|
|
||||||
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
|
|
||||||
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
|
|
||||||
- if test "x${ac_cv_sizeof_void_p}" = "x8"; then
|
|
||||||
+ if test "x${ac_cv_sizeof_void_p}" = "x8" \
|
|
||||||
+ -a "x${ac_cv_sizeof_long}" != "x8"; then
|
|
||||||
BFD_HOSTPTR_T="unsigned long long"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
diff -up ../binutils-2.20.51.0.7.original/bfd/configure ./bfd/configure
|
|
||||||
--- a/bfd/configure 2010-04-08 15:23:58.000000000 +0100
|
|
||||||
+++ b/bfd/configure 2010-04-08 15:24:06.000000000 +0100
|
|
||||||
@@ -12819,11 +12819,13 @@
|
|
||||||
BFD_HOST_64BIT_LONG=1
|
|
||||||
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
|
|
||||||
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
|
|
||||||
-elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
|
|
||||||
+fi
|
|
||||||
+if test "x${ac_cv_sizeof_long_long}" = "x8"; then
|
|
||||||
BFD_HOST_64BIT_LONG_LONG=1
|
|
||||||
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
|
|
||||||
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
|
|
||||||
- if test "x${ac_cv_sizeof_void_p}" = "x8"; then
|
|
||||||
+ if test "x${ac_cv_sizeof_void_p}" = "x8" \
|
|
||||||
+ -a "x${ac_cv_sizeof_long}" != "x8"; then
|
|
||||||
BFD_HOSTPTR_T="unsigned long long"
|
|
||||||
fi
|
|
||||||
fi
|
|
@ -1,44 +0,0 @@
|
|||||||
--- binutils-2.26.orig/bfd/Makefile.am 2016-01-25 10:11:33.505289018 +0000
|
|
||||||
+++ binutils-2.26/bfd/Makefile.am 2016-01-25 10:13:23.489964145 +0000
|
|
||||||
@@ -1043,8 +1043,8 @@ DISTCLEANFILES = $(BUILD_CFILES) $(BUILD
|
|
||||||
bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
|
|
||||||
@echo "creating $@"
|
|
||||||
@bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
|
|
||||||
- bfd_version_string="\"$(VERSION)\"" ;\
|
|
||||||
- bfd_soversion="$(VERSION)" ;\
|
|
||||||
+ bfd_version_string="\"$(VERSION)-%{release}\"" ;\
|
|
||||||
+ bfd_soversion="$(VERSION)-%{release}" ;\
|
|
||||||
bfd_version_package="\"$(PKGVERSION)\"" ;\
|
|
||||||
report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
|
|
||||||
. $(srcdir)/development.sh ;\
|
|
||||||
@@ -1055,7 +1055,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/
|
|
||||||
fi ;\
|
|
||||||
$(SED) -e "s,@bfd_version@,$$bfd_version," \
|
|
||||||
-e "s,@bfd_version_string@,$$bfd_version_string," \
|
|
||||||
- -e "s,@bfd_version_package@,$$bfd_version_package," \
|
|
||||||
+ -e "s,@bfd_version_package@,\"version \"," \
|
|
||||||
-e "s,@report_bugs_to@,$$report_bugs_to," \
|
|
||||||
< $(srcdir)/version.h > $@; \
|
|
||||||
echo "$${bfd_soversion}" > libtool-soversion
|
|
||||||
--- binutils-2.26.orig/bfd/Makefile.in 2016-01-25 10:11:33.505289018 +0000
|
|
||||||
+++ binutils-2.26/bfd/Makefile.in 2016-01-25 10:14:17.818297941 +0000
|
|
||||||
@@ -2111,8 +2111,8 @@ stmp-lcoff-h: $(LIBCOFF_H_FILES)
|
|
||||||
bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
|
|
||||||
@echo "creating $@"
|
|
||||||
@bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
|
|
||||||
- bfd_version_string="\"$(VERSION)\"" ;\
|
|
||||||
- bfd_soversion="$(VERSION)" ;\
|
|
||||||
+ bfd_version_string="\"$(VERSION)-%{release}\"" ;\
|
|
||||||
+ bfd_soversion="$(VERSION)-%{release}" ;\
|
|
||||||
bfd_version_package="\"$(PKGVERSION)\"" ;\
|
|
||||||
report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
|
|
||||||
. $(srcdir)/development.sh ;\
|
|
||||||
@@ -2123,7 +2123,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/
|
|
||||||
fi ;\
|
|
||||||
$(SED) -e "s,@bfd_version@,$$bfd_version," \
|
|
||||||
-e "s,@bfd_version_string@,$$bfd_version_string," \
|
|
||||||
- -e "s,@bfd_version_package@,$$bfd_version_package," \
|
|
||||||
+ -e "s,@bfd_version_package@,\"version \"," \
|
|
||||||
-e "s,@report_bugs_to@,$$report_bugs_to," \
|
|
||||||
< $(srcdir)/version.h > $@; \
|
|
||||||
echo "$${bfd_soversion}" > libtool-soversion
|
|
@ -1,11 +0,0 @@
|
|||||||
diff -rup binutils.orig/bfd/elfnn-aarch64.c binutils-2.27/bfd/elfnn-aarch64.c
|
|
||||||
--- binutils.orig/bfd/elfnn-aarch64.c 2017-02-21 10:45:19.311956006 +0000
|
|
||||||
+++ binutils-2.27/bfd/elfnn-aarch64.c 2017-02-21 11:55:07.517922655 +0000
|
|
||||||
@@ -4947,6 +4947,7 @@ elfNN_aarch64_final_link_relocate (reloc
|
|
||||||
it here if it is defined in a non-shared object. */
|
|
||||||
if (h != NULL
|
|
||||||
&& h->type == STT_GNU_IFUNC
|
|
||||||
+ && (input_section->flags & SEC_ALLOC)
|
|
||||||
&& h->def_regular)
|
|
||||||
{
|
|
||||||
asection *plt;
|
|
@ -1,14 +0,0 @@
|
|||||||
diff -rup binutils.orig/ld/ldmain.c binutils-2.28/ld/ldmain.c
|
|
||||||
--- binutils.orig/ld/ldmain.c 2017-06-09 09:08:26.954016429 +0100
|
|
||||||
+++ binutils-2.28/ld/ldmain.c 2017-06-09 09:09:11.307490976 +0100
|
|
||||||
@@ -923,6 +923,10 @@ multiple_definition (struct bfd_link_inf
|
|
||||||
obfd = h->u.def.section->owner;
|
|
||||||
break;
|
|
||||||
case bfd_link_hash_indirect:
|
|
||||||
+ /* PR 21074: The GOLD linker can produce multiple indirect
|
|
||||||
+ refences to the same symbol. These can be ignored. */
|
|
||||||
+ if (bfd_is_ind_section (nsec))
|
|
||||||
+ return;
|
|
||||||
osec = bfd_ind_section_ptr;
|
|
||||||
oval = 0;
|
|
||||||
obfd = NULL;
|
|
@ -1,124 +0,0 @@
|
|||||||
--- binutils.orig/binutils/readelf.c 2018-01-22 15:48:10.450701702 +0000
|
|
||||||
+++ binutils-2.30.0/binutils/readelf.c 2018-01-22 15:55:26.739588657 +0000
|
|
||||||
@@ -19019,75 +19019,85 @@ process_file (char * file_name)
|
|
||||||
Filedata * filedata = NULL;
|
|
||||||
struct stat statbuf;
|
|
||||||
char armag[SARMAG];
|
|
||||||
- bfd_boolean ret = TRUE;
|
|
||||||
+ bfd_boolean ret = FALSE;
|
|
||||||
+ char * name;
|
|
||||||
+ char * saved_program_name;
|
|
||||||
+
|
|
||||||
+ /* Overload program_name to include file_name. Doing this means
|
|
||||||
+ that warning/error messages will positively identify the file
|
|
||||||
+ concerned even when multiple instances of readelf are running. */
|
|
||||||
+ name = xmalloc (strlen (program_name) + strlen (file_name) + 3);
|
|
||||||
+ sprintf (name, "%s: %s", program_name, file_name);
|
|
||||||
+ saved_program_name = program_name;
|
|
||||||
+ program_name = name;
|
|
||||||
|
|
||||||
if (stat (file_name, &statbuf) < 0)
|
|
||||||
{
|
|
||||||
if (errno == ENOENT)
|
|
||||||
- error (_("'%s': No such file\n"), file_name);
|
|
||||||
+ error (_("No such file\n"));
|
|
||||||
else
|
|
||||||
- error (_("Could not locate '%s'. System error message: %s\n"),
|
|
||||||
- file_name, strerror (errno));
|
|
||||||
- return FALSE;
|
|
||||||
+ error (_("Could not locate file. System error message: %s\n"),
|
|
||||||
+ strerror (errno));
|
|
||||||
+ goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! S_ISREG (statbuf.st_mode))
|
|
||||||
{
|
|
||||||
- error (_("'%s' is not an ordinary file\n"), file_name);
|
|
||||||
- return FALSE;
|
|
||||||
+ error (_("Not an ordinary file\n"));
|
|
||||||
+ goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
filedata = calloc (1, sizeof * filedata);
|
|
||||||
if (filedata == NULL)
|
|
||||||
{
|
|
||||||
error (_("Out of memory allocating file data structure\n"));
|
|
||||||
- return FALSE;
|
|
||||||
+ goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
filedata->file_name = file_name;
|
|
||||||
filedata->handle = fopen (file_name, "rb");
|
|
||||||
if (filedata->handle == NULL)
|
|
||||||
{
|
|
||||||
- error (_("Input file '%s' is not readable.\n"), file_name);
|
|
||||||
- free (filedata);
|
|
||||||
- return FALSE;
|
|
||||||
+ error (_("Not readable\n"));
|
|
||||||
+ goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fread (armag, SARMAG, 1, filedata->handle) != 1)
|
|
||||||
{
|
|
||||||
- error (_("%s: Failed to read file's magic number\n"), file_name);
|
|
||||||
- fclose (filedata->handle);
|
|
||||||
- free (filedata);
|
|
||||||
- return FALSE;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- filedata->file_size = (bfd_size_type) statbuf.st_size;
|
|
||||||
-
|
|
||||||
- if (memcmp (armag, ARMAG, SARMAG) == 0)
|
|
||||||
- {
|
|
||||||
- if (! process_archive (filedata, FALSE))
|
|
||||||
- ret = FALSE;
|
|
||||||
- }
|
|
||||||
- else if (memcmp (armag, ARMAGT, SARMAG) == 0)
|
|
||||||
- {
|
|
||||||
- if ( ! process_archive (filedata, TRUE))
|
|
||||||
- ret = FALSE;
|
|
||||||
+ error (_("Failed to read file's magic number\n"));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
- if (do_archive_index)
|
|
||||||
- error (_("File %s is not an archive so its index cannot be displayed.\n"),
|
|
||||||
- file_name);
|
|
||||||
+ filedata->file_size = (bfd_size_type) statbuf.st_size;
|
|
||||||
|
|
||||||
- rewind (filedata->handle);
|
|
||||||
- archive_file_size = archive_file_offset = 0;
|
|
||||||
-
|
|
||||||
- if (! process_object (filedata))
|
|
||||||
- ret = FALSE;
|
|
||||||
+ if (memcmp (armag, ARMAG, SARMAG) == 0)
|
|
||||||
+ {
|
|
||||||
+ if (process_archive (filedata, FALSE))
|
|
||||||
+ ret = TRUE;
|
|
||||||
+ }
|
|
||||||
+ else if (memcmp (armag, ARMAGT, SARMAG) == 0)
|
|
||||||
+ {
|
|
||||||
+ if (process_archive (filedata, TRUE))
|
|
||||||
+ ret = TRUE;
|
|
||||||
+ }
|
|
||||||
+ else
|
|
||||||
+ {
|
|
||||||
+ if (do_archive_index)
|
|
||||||
+ error (_("Not an archive so its index cannot be displayed.\n"));
|
|
||||||
+
|
|
||||||
+ rewind (filedata->handle);
|
|
||||||
+ archive_file_size = archive_file_offset = 0;
|
|
||||||
+
|
|
||||||
+ if (process_object (filedata))
|
|
||||||
+ ret = TRUE;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
fclose (filedata->handle);
|
|
||||||
+ done:
|
|
||||||
free (filedata);
|
|
||||||
+ free (program_name);
|
|
||||||
+ program_name = saved_program_name;
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
@ -1,266 +0,0 @@
|
|||||||
diff -rup binutils.orig/ld/testsuite/ld-i386/pltgot-1.d binutils-2.29.1/ld/testsuite/ld-i386/pltgot-1.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-i386/pltgot-1.d 2017-11-15 13:32:39.335065263 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-i386/pltgot-1.d 2017-11-15 15:03:55.649727195 +0000
|
|
||||||
@@ -2,6 +2,7 @@
|
|
||||||
#readelf: -S --wide
|
|
||||||
#as: --32
|
|
||||||
|
|
||||||
+#pass
|
|
||||||
#...
|
|
||||||
+\[ *[0-9]+\] \.plt +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+10 +.*
|
|
||||||
#...
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-i386/pltgot-2.d binutils-2.29.1/ld/testsuite/ld-i386/pltgot-2.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-i386/pltgot-2.d 2017-11-15 13:32:39.329065335 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-i386/pltgot-2.d 2017-11-15 15:04:20.803430034 +0000
|
|
||||||
@@ -3,7 +3,6 @@
|
|
||||||
#readelf: -d --wide
|
|
||||||
#as: --32
|
|
||||||
|
|
||||||
-#failif
|
|
||||||
#...
|
|
||||||
+0x[0-9a-f]+ +\(PLTREL.*
|
|
||||||
#...
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-i386/pr19636-2d.d binutils-2.29.1/ld/testsuite/ld-i386/pr19636-2d.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-i386/pr19636-2d.d 2017-11-15 13:32:39.336065251 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-i386/pr19636-2d.d 2017-11-15 15:03:00.413379749 +0000
|
|
||||||
@@ -9,7 +9,7 @@ Relocation section '\.rel\.dyn' at offse
|
|
||||||
[0-9a-f]+ +[0-9a-f]+ +R_386_32 +0+ +func
|
|
||||||
[0-9a-f]+ +[0-9a-f]+ +R_386_PC32 +0+ +func
|
|
||||||
[0-9a-f]+ +[0-9a-f]+ +R_386_GLOB_DAT +0+ +func
|
|
||||||
-
|
|
||||||
+#...
|
|
||||||
Symbol table '\.dynsym' contains [0-9]+ entries:
|
|
||||||
+Num: +Value +Size Type +Bind +Vis +Ndx Name
|
|
||||||
#...
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-i386/pr19636-2e.d binutils-2.29.1/ld/testsuite/ld-i386/pr19636-2e.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-i386/pr19636-2e.d 2017-11-15 13:32:39.330065323 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-i386/pr19636-2e.d 2017-11-15 15:03:28.928042882 +0000
|
|
||||||
@@ -9,7 +9,7 @@ Relocation section '\.rel\.dyn' at offse
|
|
||||||
[0-9a-f]+ +[0-9a-f]+ +R_386_32 +0+ +func
|
|
||||||
[0-9a-f]+ +[0-9a-f]+ +R_386_PC32 +0+ +func
|
|
||||||
[0-9a-f]+ +[0-9a-f]+ +R_386_GLOB_DAT +0+ +func
|
|
||||||
-
|
|
||||||
+#...
|
|
||||||
Symbol table '\.dynsym' contains [0-9]+ entries:
|
|
||||||
+Num: +Value +Size Type +Bind +Vis +Ndx Name
|
|
||||||
#...
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pltgot-1.d binutils-2.29.1/ld/testsuite/ld-x86-64/pltgot-1.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/pltgot-1.d 2017-11-15 13:32:39.415064300 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/pltgot-1.d 2017-11-15 15:08:39.333375801 +0000
|
|
||||||
@@ -2,8 +2,4 @@
|
|
||||||
#readelf: -S --wide
|
|
||||||
#as: --64
|
|
||||||
|
|
||||||
-#...
|
|
||||||
- +\[ *[0-9]+\] \.plt +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+10 +.*
|
|
||||||
-#...
|
|
||||||
- +\[ *[0-9]+\] \.got\.plt +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+18 +.*
|
|
||||||
#pass
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pltgot-2.d binutils-2.29.1/ld/testsuite/ld-x86-64/pltgot-2.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/pltgot-2.d 2017-11-15 13:32:39.404064432 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/pltgot-2.d 2017-11-15 15:08:59.031143095 +0000
|
|
||||||
@@ -3,7 +3,6 @@
|
|
||||||
#readelf: -d --wide
|
|
||||||
#as: --64
|
|
||||||
|
|
||||||
-#failif
|
|
||||||
#...
|
|
||||||
+0x[0-9a-f]+ +\(PLTREL.*
|
|
||||||
#...
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/plt-main-bnd.dd binutils-2.29.1/ld/testsuite/ld-x86-64/plt-main-bnd.dd
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/plt-main-bnd.dd 2017-11-15 13:32:39.405064420 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/plt-main-bnd.dd 2017-11-15 15:06:53.694623801 +0000
|
|
||||||
@@ -1,7 +1,4 @@
|
|
||||||
-#...
|
|
||||||
-Disassembly of section .plt.got:
|
|
||||||
|
|
||||||
-[a-f0-9]+ <[a-z_]+@plt>:
|
|
||||||
-[ ]*[a-f0-9]+: f2 ff 25 .. .. 20 00 bnd jmpq \*0x20....\(%rip\) # ...... <.*>
|
|
||||||
+#...
|
|
||||||
[ ]*[a-f0-9]+: 90 nop
|
|
||||||
#pass
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/plt-main-ibt.dd binutils-2.29.1/ld/testsuite/ld-x86-64/plt-main-ibt.dd
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/plt-main-ibt.dd 2017-11-15 13:32:39.412064336 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/plt-main-ibt.dd 2017-11-15 15:06:35.148842897 +0000
|
|
||||||
@@ -1,7 +1,3 @@
|
|
||||||
#...
|
|
||||||
-Disassembly of section .plt.got:
|
|
||||||
-
|
|
||||||
-[a-f0-9]+ <[_a-z]+@plt>:
|
|
||||||
[ ]*[a-f0-9]+: f3 0f 1e fa endbr64
|
|
||||||
-[ ]*[a-f0-9]+: f2 ff 25 .. .. 20 00 bnd jmpq \*0x20....\(%rip\) # ...... <[_a-z]+>
|
|
||||||
#pass
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/plt-main.rd binutils-2.29.1/ld/testsuite/ld-x86-64/plt-main.rd
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/plt-main.rd 2017-11-15 13:32:39.407064397 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/plt-main.rd 2017-11-15 15:06:17.244054423 +0000
|
|
||||||
@@ -1,4 +1,3 @@
|
|
||||||
-#failif
|
|
||||||
#...
|
|
||||||
[0-9a-f ]+R_X86_64_JUMP_SLOT +0+ +bar \+ 0
|
|
||||||
#...
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr20830a.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830a.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/pr20830a.d 2017-11-15 13:32:39.412064336 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830a.d 2017-11-15 15:15:09.918750288 +0000
|
|
||||||
@@ -20,6 +20,7 @@ Contents of the .eh_frame section:
|
|
||||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
+#pass
|
|
||||||
|
|
||||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4
|
|
||||||
DW_CFA_nop
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr20830a-now.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830a-now.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/pr20830a-now.d 2017-11-15 13:32:39.413064324 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830a-now.d 2017-11-15 15:16:08.227055104 +0000
|
|
||||||
@@ -20,6 +20,7 @@ Contents of the .eh_frame section:
|
|
||||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
+#pass
|
|
||||||
|
|
||||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4
|
|
||||||
DW_CFA_nop
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr20830b.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830b.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/pr20830b.d 2017-11-15 13:32:39.413064324 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830b.d 2017-11-15 15:16:20.115913358 +0000
|
|
||||||
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
|
|
||||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
-
|
|
||||||
+#pass
|
|
||||||
+
|
|
||||||
0+18 0000000000000010 0000001c FDE cie=00000000 pc=0000000000000138..0000000000000144
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr20830b-now.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830b-now.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/pr20830b-now.d 2017-11-15 13:32:39.411064348 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr20830b-now.d 2017-11-15 15:16:29.012807282 +0000
|
|
||||||
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
|
|
||||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
-
|
|
||||||
+#pass
|
|
||||||
+
|
|
||||||
0+18 0000000000000010 0000001c FDE cie=00000000 pc=0000000000000138..0000000000000144
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr21038a.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr21038a.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/pr21038a.d 2017-11-15 13:32:39.408064384 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr21038a.d 2017-11-15 15:19:48.097433680 +0000
|
|
||||||
@@ -19,7 +19,8 @@ Contents of the .eh_frame section:
|
|
||||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
-
|
|
||||||
+#pass
|
|
||||||
+
|
|
||||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr21038a-now.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr21038a-now.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/pr21038a-now.d 2017-11-15 13:32:39.401064469 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr21038a-now.d 2017-11-15 15:10:56.077760324 +0000
|
|
||||||
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
|
|
||||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
-
|
|
||||||
+#pass
|
|
||||||
+
|
|
||||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr21038b.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr21038b.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/pr21038b.d 2017-11-15 13:32:39.405064420 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr21038b.d 2017-11-15 15:10:42.828916844 +0000
|
|
||||||
@@ -19,6 +19,7 @@ Contents of the .eh_frame section:
|
|
||||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
+#pass
|
|
||||||
|
|
||||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001d8..00000000000001dd
|
|
||||||
DW_CFA_nop
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr21038b-now.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr21038b-now.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/pr21038b-now.d 2017-11-15 13:32:39.416064288 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr21038b-now.d 2017-11-15 15:11:11.550577531 +0000
|
|
||||||
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
|
|
||||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
-
|
|
||||||
+#pass
|
|
||||||
+
|
|
||||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001d8..00000000000001dd
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr21038c.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr21038c.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/pr21038c.d 2017-11-15 13:32:39.411064348 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr21038c.d 2017-11-15 15:09:52.664509478 +0000
|
|
||||||
@@ -19,7 +19,8 @@ Contents of the .eh_frame section:
|
|
||||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
-
|
|
||||||
+#pass
|
|
||||||
+
|
|
||||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=0000000000000220..0000000000000231
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr21038c-now.d binutils-2.29.1/ld/testsuite/ld-x86-64/pr21038c-now.d
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/pr21038c-now.d 2017-11-15 13:32:39.413064324 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/pr21038c-now.d 2017-11-15 15:11:22.975442559 +0000
|
|
||||||
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
|
|
||||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
-
|
|
||||||
+#pass
|
|
||||||
+
|
|
||||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=0000000000000220..0000000000000231
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
diff -rup binutils.orig/ld/testsuite/ld-x86-64/tlspic2.rd binutils-2.29.1/ld/testsuite/ld-x86-64/tlspic2.rd
|
|
||||||
--- binutils.orig/ld/testsuite/ld-x86-64/tlspic2.rd 2017-11-15 13:32:39.417064276 +0000
|
|
||||||
+++ binutils-2.29.1/ld/testsuite/ld-x86-64/tlspic2.rd 2017-11-15 15:05:02.950932110 +0000
|
|
||||||
@@ -14,6 +14,7 @@ Section Headers:
|
|
||||||
+\[[ 0-9]+\] .dynsym +.*
|
|
||||||
+\[[ 0-9]+\] .dynstr +.*
|
|
||||||
+\[[ 0-9]+\] .rela.dyn +.*
|
|
||||||
+#pass
|
|
||||||
+\[[ 0-9]+\] .plt +.*
|
|
||||||
+\[[ 0-9]+\] .plt.got +.*
|
|
||||||
+\[[ 0-9]+\] .text +PROGBITS +0+1000 0+1000 0+31a 00 +AX +0 +0 4096
|
|
||||||
--- binutils.orig/bfd/elfxx-x86.c 2018-01-22 15:59:25.875788033 +0000
|
|
||||||
+++ binutils-2.30.0/bfd/elfxx-x86.c 2018-01-22 16:00:20.789146597 +0000
|
|
||||||
@@ -107,7 +107,7 @@ elf_x86_allocate_dynrelocs (struct elf_l
|
|
||||||
plt_entry_size = htab->plt.plt_entry_size;
|
|
||||||
|
|
||||||
resolved_to_zero = UNDEFINED_WEAK_RESOLVED_TO_ZERO (info, eh);
|
|
||||||
-
|
|
||||||
+#if 0
|
|
||||||
/* We can't use the GOT PLT if pointer equality is needed since
|
|
||||||
finish_dynamic_symbol won't clear symbol value and the dynamic
|
|
||||||
linker won't update the GOT slot. We will get into an infinite
|
|
||||||
@@ -125,7 +125,7 @@ elf_x86_allocate_dynrelocs (struct elf_l
|
|
||||||
/* Use the GOT PLT. */
|
|
||||||
eh->plt_got.refcount = 1;
|
|
||||||
}
|
|
||||||
-
|
|
||||||
+#endif
|
|
||||||
/* Since STT_GNU_IFUNC symbol must go through PLT, we handle it
|
|
||||||
here if it is defined and referenced in a non-shared object. */
|
|
||||||
if (h->type == STT_GNU_IFUNC
|
|
||||||
--- binutils.orig/ld/testsuite/ld-i386/pr20830.d 2018-07-09 09:49:51.277239857 +0100
|
|
||||||
+++ binutils-2.30.90/ld/testsuite/ld-i386/pr20830.d 2018-07-09 10:32:41.113356733 +0100
|
|
||||||
@@ -19,7 +19,7 @@ Contents of the .eh_frame section:
|
|
||||||
DW_CFA_offset: r8 \(eip\) at cfa-4
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
||||||
-
|
|
||||||
+#pass
|
|
||||||
0+18 00000010 0000001c FDE cie=00000000 pc=00000128..00000133
|
|
||||||
DW_CFA_nop
|
|
||||||
DW_CFA_nop
|
|
@ -1,17 +0,0 @@
|
|||||||
--- binutils.orig/libiberty/simple-object-elf.c 2019-08-09 14:13:51.677330065 +0100
|
|
||||||
+++ binutils-2.32/libiberty/simple-object-elf.c 2019-08-09 14:14:31.177076298 +0100
|
|
||||||
@@ -549,6 +549,14 @@ simple_object_elf_match (unsigned char h
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ if (eor->shstrndx == 0)
|
|
||||||
+ {
|
|
||||||
+ *errmsg = "invalid ELF shstrndx == 0";
|
|
||||||
+ *err = 0;
|
|
||||||
+ XDELETE (eor);
|
|
||||||
+ return NULL;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
return (void *) eor;
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
--- binutils.orig/binutils/readelf.c 2019-08-13 10:03:33.518792590 +0100
|
|
||||||
+++ binutils-2.32/binutils/readelf.c 2019-08-13 10:04:22.885418269 +0100
|
|
||||||
@@ -13234,7 +13234,7 @@ apply_relocations (Filedata *
|
|
||||||
}
|
|
||||||
|
|
||||||
rloc = start + rp->r_offset;
|
|
||||||
- if ((rloc + reloc_size) > end || (rloc < start))
|
|
||||||
+ if (rloc >= end || (rloc + reloc_size) > end || (rloc < start))
|
|
||||||
{
|
|
||||||
warn (_("skipping invalid relocation offset 0x%lx in section %s\n"),
|
|
||||||
(unsigned long) rp->r_offset,
|
|
@ -1,62 +0,0 @@
|
|||||||
--- binutils.orig/bfd/dwarf2.c 2019-11-13 11:49:52.211121564 +0000
|
|
||||||
+++ binutils-2.33.1/bfd/dwarf2.c 2019-11-13 11:53:26.991423055 +0000
|
|
||||||
@@ -2813,8 +2813,8 @@ static bfd_boolean comp_unit_maybe_decod
|
|
||||||
|
|
||||||
static bfd_boolean
|
|
||||||
find_abstract_instance (struct comp_unit * unit,
|
|
||||||
- bfd_byte * orig_info_ptr,
|
|
||||||
struct attribute * attr_ptr,
|
|
||||||
+ unsigned int recur_count,
|
|
||||||
const char ** pname,
|
|
||||||
bfd_boolean * is_linkage,
|
|
||||||
char ** filename_ptr,
|
|
||||||
@@ -2829,6 +2829,14 @@ find_abstract_instance (struct comp_unit
|
|
||||||
struct attribute attr;
|
|
||||||
const char *name = NULL;
|
|
||||||
|
|
||||||
+ if (recur_count == 100)
|
|
||||||
+ {
|
|
||||||
+ _bfd_error_handler
|
|
||||||
+ (_("DWARF error: abstract instance recursion detected"));
|
|
||||||
+ bfd_set_error (bfd_error_bad_value);
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
/* DW_FORM_ref_addr can reference an entry in a different CU. It
|
|
||||||
is an offset from the .debug_info section, not the current CU. */
|
|
||||||
if (attr_ptr->form == DW_FORM_ref_addr)
|
|
||||||
@@ -2962,15 +2970,7 @@ find_abstract_instance (struct comp_unit
|
|
||||||
info_ptr, info_ptr_end);
|
|
||||||
if (info_ptr == NULL)
|
|
||||||
break;
|
|
||||||
- /* It doesn't ever make sense for DW_AT_specification to
|
|
||||||
- refer to the same DIE. Stop simple recursion. */
|
|
||||||
- if (info_ptr == orig_info_ptr)
|
|
||||||
- {
|
|
||||||
- _bfd_error_handler
|
|
||||||
- (_("DWARF error: abstract instance recursion detected"));
|
|
||||||
- bfd_set_error (bfd_error_bad_value);
|
|
||||||
- return FALSE;
|
|
||||||
- }
|
|
||||||
+
|
|
||||||
switch (attr.name)
|
|
||||||
{
|
|
||||||
case DW_AT_name:
|
|
||||||
@@ -2984,7 +2984,7 @@ find_abstract_instance (struct comp_unit
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case DW_AT_specification:
|
|
||||||
- if (!find_abstract_instance (unit, info_ptr, &attr,
|
|
||||||
+ if (!find_abstract_instance (unit, &attr, recur_count + 1,
|
|
||||||
&name, is_linkage,
|
|
||||||
filename_ptr, linenumber_ptr))
|
|
||||||
return FALSE;
|
|
||||||
@@ -3200,7 +3200,7 @@ scan_unit_for_symbols (struct comp_unit
|
|
||||||
|
|
||||||
case DW_AT_abstract_origin:
|
|
||||||
case DW_AT_specification:
|
|
||||||
- if (!find_abstract_instance (unit, info_ptr, &attr,
|
|
||||||
+ if (!find_abstract_instance (unit, &attr, 0,
|
|
||||||
&func->name,
|
|
||||||
&func->is_linkage,
|
|
||||||
&func->file,
|
|
@ -1,20 +0,0 @@
|
|||||||
--- binutils.orig/bfd/dwarf2.c 2019-11-13 11:32:09.395430104 +0000
|
|
||||||
+++ binutils-2.33.1/bfd/dwarf2.c 2019-11-13 11:33:17.272899503 +0000
|
|
||||||
@@ -4440,7 +4440,16 @@ _bfd_dwarf2_slurp_debug_info (bfd *abfd,
|
|
||||||
for (total_size = 0;
|
|
||||||
msec;
|
|
||||||
msec = find_debug_info (debug_bfd, debug_sections, msec))
|
|
||||||
- total_size += msec->size;
|
|
||||||
+ {
|
|
||||||
+ /* Catch PR25070 testcase overflowing size calculation here. */
|
|
||||||
+ if (total_size + msec->size < total_size
|
|
||||||
+ || total_size + msec->size < msec->size)
|
|
||||||
+ {
|
|
||||||
+ bfd_set_error (bfd_error_no_memory);
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+ total_size += msec->size;
|
|
||||||
+ }
|
|
||||||
|
|
||||||
stash->info_ptr_memory = (bfd_byte *) bfd_malloc (total_size);
|
|
||||||
if (stash->info_ptr_memory == NULL)
|
|
@ -1,110 +0,0 @@
|
|||||||
--- binutils.orig/libiberty/cp-demangle.c 2019-04-10 10:31:27.854997707 +0100
|
|
||||||
+++ binutils-2.31.1/libiberty/cp-demangle.c 2019-04-10 16:00:35.820350978 +0100
|
|
||||||
@@ -858,7 +858,7 @@ CP_STATIC_IF_GLIBCPP_V3
|
|
||||||
int
|
|
||||||
cplus_demangle_fill_name (struct demangle_component *p, const char *s, int len)
|
|
||||||
{
|
|
||||||
- if (p == NULL || s == NULL || len == 0)
|
|
||||||
+ if (p == NULL || s == NULL || len <= 0)
|
|
||||||
return 0;
|
|
||||||
p->d_printing = 0;
|
|
||||||
p->type = DEMANGLE_COMPONENT_NAME;
|
|
||||||
@@ -4032,7 +4032,7 @@ d_growable_string_callback_adapter (cons
|
|
||||||
are larger than the actual numbers encountered. */
|
|
||||||
|
|
||||||
static void
|
|
||||||
-d_count_templates_scopes (int *num_templates, int *num_scopes,
|
|
||||||
+d_count_templates_scopes (struct d_print_info *dpi,
|
|
||||||
const struct demangle_component *dc)
|
|
||||||
{
|
|
||||||
if (dc == NULL)
|
|
||||||
@@ -4052,13 +4052,13 @@ d_count_templates_scopes (int *num_templ
|
|
||||||
break;
|
|
||||||
|
|
||||||
case DEMANGLE_COMPONENT_TEMPLATE:
|
|
||||||
- (*num_templates)++;
|
|
||||||
+ dpi->num_copy_templates++;
|
|
||||||
goto recurse_left_right;
|
|
||||||
|
|
||||||
case DEMANGLE_COMPONENT_REFERENCE:
|
|
||||||
case DEMANGLE_COMPONENT_RVALUE_REFERENCE:
|
|
||||||
if (d_left (dc)->type == DEMANGLE_COMPONENT_TEMPLATE_PARAM)
|
|
||||||
- (*num_scopes)++;
|
|
||||||
+ dpi->num_saved_scopes++;
|
|
||||||
goto recurse_left_right;
|
|
||||||
|
|
||||||
case DEMANGLE_COMPONENT_QUAL_NAME:
|
|
||||||
@@ -4122,42 +4122,42 @@ d_count_templates_scopes (int *num_templ
|
|
||||||
case DEMANGLE_COMPONENT_TAGGED_NAME:
|
|
||||||
case DEMANGLE_COMPONENT_CLONE:
|
|
||||||
recurse_left_right:
|
|
||||||
- d_count_templates_scopes (num_templates, num_scopes,
|
|
||||||
- d_left (dc));
|
|
||||||
- d_count_templates_scopes (num_templates, num_scopes,
|
|
||||||
- d_right (dc));
|
|
||||||
+ /* PR 89394 - Check for too much recursion. */
|
|
||||||
+ if (dpi->recursion > DEMANGLE_RECURSION_LIMIT)
|
|
||||||
+ /* FIXME: There ought to be a way to report to the
|
|
||||||
+ user that the recursion limit has been reached. */
|
|
||||||
+ return;
|
|
||||||
+
|
|
||||||
+ ++ dpi->recursion;
|
|
||||||
+ d_count_templates_scopes (dpi, d_left (dc));
|
|
||||||
+ d_count_templates_scopes (dpi, d_right (dc));
|
|
||||||
+ -- dpi->recursion;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case DEMANGLE_COMPONENT_CTOR:
|
|
||||||
- d_count_templates_scopes (num_templates, num_scopes,
|
|
||||||
- dc->u.s_ctor.name);
|
|
||||||
+ d_count_templates_scopes (dpi, dc->u.s_ctor.name);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case DEMANGLE_COMPONENT_DTOR:
|
|
||||||
- d_count_templates_scopes (num_templates, num_scopes,
|
|
||||||
- dc->u.s_dtor.name);
|
|
||||||
+ d_count_templates_scopes (dpi, dc->u.s_dtor.name);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case DEMANGLE_COMPONENT_EXTENDED_OPERATOR:
|
|
||||||
- d_count_templates_scopes (num_templates, num_scopes,
|
|
||||||
- dc->u.s_extended_operator.name);
|
|
||||||
+ d_count_templates_scopes (dpi, dc->u.s_extended_operator.name);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case DEMANGLE_COMPONENT_FIXED_TYPE:
|
|
||||||
- d_count_templates_scopes (num_templates, num_scopes,
|
|
||||||
- dc->u.s_fixed.length);
|
|
||||||
+ d_count_templates_scopes (dpi, dc->u.s_fixed.length);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS:
|
|
||||||
case DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS:
|
|
||||||
- d_count_templates_scopes (num_templates, num_scopes,
|
|
||||||
- d_left (dc));
|
|
||||||
+ d_count_templates_scopes (dpi, d_left (dc));
|
|
||||||
break;
|
|
||||||
|
|
||||||
case DEMANGLE_COMPONENT_LAMBDA:
|
|
||||||
case DEMANGLE_COMPONENT_DEFAULT_ARG:
|
|
||||||
- d_count_templates_scopes (num_templates, num_scopes,
|
|
||||||
- dc->u.s_unary_num.sub);
|
|
||||||
+ d_count_templates_scopes (dpi, dc->u.s_unary_num.sub);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -4192,8 +4192,12 @@ d_print_init (struct d_print_info *dpi,
|
|
||||||
dpi->next_copy_template = 0;
|
|
||||||
dpi->num_copy_templates = 0;
|
|
||||||
|
|
||||||
- d_count_templates_scopes (&dpi->num_copy_templates,
|
|
||||||
- &dpi->num_saved_scopes, dc);
|
|
||||||
+ d_count_templates_scopes (dpi, dc);
|
|
||||||
+ /* If we did not reach the recursion limit, then reset the
|
|
||||||
+ current recursion value back to 0, so that we can print
|
|
||||||
+ the templates. */
|
|
||||||
+ if (dpi->recursion < DEMANGLE_RECURSION_LIMIT)
|
|
||||||
+ dpi->recursion = 0;
|
|
||||||
dpi->num_copy_templates *= dpi->num_saved_scopes;
|
|
||||||
|
|
||||||
dpi->current_template = NULL;
|
|
@ -1,13 +0,0 @@
|
|||||||
--- binutils.orig/binutils/objdump.c 2019-02-25 16:12:30.394056901 +0000
|
|
||||||
+++ binutils-2.31.1/binutils/objdump.c 2019-02-25 16:13:07.224778005 +0000
|
|
||||||
@@ -2993,7 +2993,9 @@ dump_bfd_header (bfd *abfd)
|
|
||||||
static void
|
|
||||||
dump_bfd_private_header (bfd *abfd)
|
|
||||||
{
|
|
||||||
- bfd_print_private_bfd_data (abfd, stdout);
|
|
||||||
+ if (!bfd_print_private_bfd_data (abfd, stdout))
|
|
||||||
+ non_fatal (_("warning: private headers incomplete: %s"),
|
|
||||||
+ bfd_errmsg (bfd_get_error ()));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
@ -1,32 +0,0 @@
|
|||||||
--- binutils.orig/bfd/pei-x86_64.c 2019-02-25 16:12:29.798061414 +0000
|
|
||||||
+++ binutils-2.31.1/bfd/pei-x86_64.c 2019-02-25 17:09:02.783425236 +0000
|
|
||||||
@@ -541,7 +541,7 @@ pex64_bfd_print_pdata_section (bfd *abfd
|
|
||||||
/* virt_size might be zero for objects. */
|
|
||||||
if (stop == 0 && strcmp (abfd->xvec->name, "pe-x86-64") == 0)
|
|
||||||
{
|
|
||||||
- stop = (datasize / onaline) * onaline;
|
|
||||||
+ stop = datasize;
|
|
||||||
virt_size_is_zero = TRUE;
|
|
||||||
}
|
|
||||||
else if (datasize < stop)
|
|
||||||
@@ -551,8 +551,8 @@ pex64_bfd_print_pdata_section (bfd *abfd
|
|
||||||
_("Warning: %s section size (%ld) is smaller than virtual size (%ld)\n"),
|
|
||||||
pdata_section->name, (unsigned long) datasize,
|
|
||||||
(unsigned long) stop);
|
|
||||||
- /* Be sure not to read passed datasize. */
|
|
||||||
- stop = datasize / onaline;
|
|
||||||
+ /* Be sure not to read past datasize. */
|
|
||||||
+ stop = datasize;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Display functions table. */
|
|
||||||
@@ -724,8 +724,7 @@ pex64_bfd_print_pdata_section (bfd *abfd
|
|
||||||
altent += imagebase;
|
|
||||||
|
|
||||||
if (altent >= pdata_vma
|
|
||||||
- && (altent + PDATA_ROW_SIZE <= pdata_vma
|
|
||||||
- + pei_section_data (abfd, pdata_section)->virt_size))
|
|
||||||
+ && altent - pdata_vma + PDATA_ROW_SIZE <= stop)
|
|
||||||
{
|
|
||||||
pex64_get_runtime_function
|
|
||||||
(abfd, &arf, &pdata[altent - pdata_vma]);
|
|
@ -1,73 +0,0 @@
|
|||||||
diff -rup binutils.orig/bfd/archive64.c binutils-2.31.1/bfd/archive64.c
|
|
||||||
--- binutils.orig/bfd/archive64.c 2019-02-26 11:17:11.882530151 +0000
|
|
||||||
+++ binutils-2.31.1/bfd/archive64.c 2019-02-26 11:19:18.422488805 +0000
|
|
||||||
@@ -100,8 +100,6 @@ _bfd_archive_64_bit_slurp_armap (bfd *ab
|
|
||||||
return FALSE;
|
|
||||||
carsyms = ardata->symdefs;
|
|
||||||
stringbase = ((char *) ardata->symdefs) + carsym_size;
|
|
||||||
- stringbase[stringsize] = 0;
|
|
||||||
- stringend = stringbase + stringsize;
|
|
||||||
|
|
||||||
raw_armap = (bfd_byte *) bfd_alloc (abfd, ptrsize);
|
|
||||||
if (raw_armap == NULL)
|
|
||||||
@@ -115,15 +113,17 @@ _bfd_archive_64_bit_slurp_armap (bfd *ab
|
|
||||||
goto release_raw_armap;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ stringend = stringbase + stringsize;
|
|
||||||
+ *stringend = 0;
|
|
||||||
for (i = 0; i < nsymz; i++)
|
|
||||||
{
|
|
||||||
carsyms->file_offset = bfd_getb64 (raw_armap + i * 8);
|
|
||||||
carsyms->name = stringbase;
|
|
||||||
- if (stringbase < stringend)
|
|
||||||
- stringbase += strlen (stringbase) + 1;
|
|
||||||
+ stringbase += strlen (stringbase);
|
|
||||||
+ if (stringbase != stringend)
|
|
||||||
+ ++stringbase;
|
|
||||||
++carsyms;
|
|
||||||
}
|
|
||||||
- *stringbase = '\0';
|
|
||||||
|
|
||||||
ardata->symdef_count = nsymz;
|
|
||||||
ardata->first_file_filepos = bfd_tell (abfd);
|
|
||||||
diff -rup binutils.orig/bfd/archive.c binutils-2.31.1/bfd/archive.c
|
|
||||||
--- binutils.orig/bfd/archive.c 2019-02-26 11:17:11.884530134 +0000
|
|
||||||
+++ binutils-2.31.1/bfd/archive.c 2019-02-26 11:18:33.354859687 +0000
|
|
||||||
@@ -1014,6 +1014,7 @@ do_slurp_coff_armap (bfd *abfd)
|
|
||||||
int *raw_armap, *rawptr;
|
|
||||||
struct artdata *ardata = bfd_ardata (abfd);
|
|
||||||
char *stringbase;
|
|
||||||
+ char *stringend;
|
|
||||||
bfd_size_type stringsize;
|
|
||||||
bfd_size_type parsed_size;
|
|
||||||
carsym *carsyms;
|
|
||||||
@@ -1073,22 +1074,20 @@ do_slurp_coff_armap (bfd *abfd)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* OK, build the carsyms. */
|
|
||||||
- for (i = 0; i < nsymz && stringsize > 0; i++)
|
|
||||||
+ stringend = stringbase + stringsize;
|
|
||||||
+ *stringend = 0;
|
|
||||||
+ for (i = 0; i < nsymz; i++)
|
|
||||||
{
|
|
||||||
bfd_size_type len;
|
|
||||||
|
|
||||||
rawptr = raw_armap + i;
|
|
||||||
carsyms->file_offset = swap ((bfd_byte *) rawptr);
|
|
||||||
carsyms->name = stringbase;
|
|
||||||
- /* PR 17512: file: 4a1d50c1. */
|
|
||||||
- len = strnlen (stringbase, stringsize);
|
|
||||||
- if (len < stringsize)
|
|
||||||
- len ++;
|
|
||||||
- stringbase += len;
|
|
||||||
- stringsize -= len;
|
|
||||||
+ stringbase += strlen (stringbase);
|
|
||||||
+ if (stringbase != stringend)
|
|
||||||
+ ++stringbase;
|
|
||||||
carsyms++;
|
|
||||||
}
|
|
||||||
- *stringbase = 0;
|
|
||||||
|
|
||||||
ardata->symdef_count = nsymz;
|
|
||||||
ardata->first_file_filepos = bfd_tell (abfd);
|
|
@ -1,16 +0,0 @@
|
|||||||
--- binutils.orig/binutils/readelf.c 2019-02-26 11:17:12.414525772 +0000
|
|
||||||
+++ binutils-2.31.1/binutils/readelf.c 2019-02-26 12:11:40.642876742 +0000
|
|
||||||
@@ -16009,6 +16009,13 @@ process_mips_specific (Filedata * fileda
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ /* PR 24243 */
|
|
||||||
+ if (sect->sh_size < sizeof (* eopt))
|
|
||||||
+ {
|
|
||||||
+ error (_("The MIPS options section is too small.\n"));
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
eopt = (Elf_External_Options *) get_data (NULL, filedata, options_offset, 1,
|
|
||||||
sect->sh_size, _("options"));
|
|
||||||
if (eopt)
|
|
@ -1,11 +0,0 @@
|
|||||||
--- binutils.orig/gold/ftruncate.c 2019-06-25 11:36:51.074941484 +0100
|
|
||||||
+++ binutils-2.32/gold/ftruncate.c 2019-06-25 11:37:28.108690037 +0100
|
|
||||||
@@ -1,7 +1,6 @@
|
|
||||||
/* ftruncate emulations that work on some System V's.
|
|
||||||
- This file is in the public domain. */
|
|
||||||
|
|
||||||
-/* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
|
||||||
+ Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of gold.
|
|
||||||
|
|
@ -287,12 +287,12 @@ Patch35: binutils-CVE-2019-14444.patch
|
|||||||
|
|
||||||
# Purpose: Fix a potential seg-fault in the BFD library when parsing
|
# Purpose: Fix a potential seg-fault in the BFD library when parsing
|
||||||
# pathalogical debug_info sections.
|
# pathalogical debug_info sections.
|
||||||
# Lifetime: Fixed in 2.34
|
# Lifetime: Fixed in 2.34
|
||||||
Patch36: binutils-CVE-2019-17451.patch
|
Patch36: binutils-CVE-2019-17451.patch
|
||||||
|
|
||||||
# Purpose: Fix a memory exhaustion bug in the BFD library when parsing
|
# Purpose: Fix a memory exhaustion bug in the BFD library when parsing
|
||||||
# corrupt DWARF debug information.
|
# corrupt DWARF debug information.
|
||||||
# Lifetime: Fixed in 2.34
|
# Lifetime: Fixed in 2.34
|
||||||
Patch37: binutils-CVE-2019-17450.patch
|
Patch37: binutils-CVE-2019-17450.patch
|
||||||
|
|
||||||
# Purpose: Add a feature to the x86/64 assembler to create
|
# Purpose: Add a feature to the x86/64 assembler to create
|
||||||
@ -898,16 +898,10 @@ exit 0
|
|||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Dec 17 2019 Nick Clifton <nickc@redhat.com> - 2.32-17
|
* Sun Dec 08 2019 Nick Clifton <nickc@redhat.com> - 2.32-17
|
||||||
- Import gating tests from RHEL 8.2.0 branch.
|
|
||||||
|
|
||||||
* Tue Dec 17 2019 Nick Clifton <nickc@redhat.com> - 2.32-16
|
|
||||||
- NVR change in order to test problems with gating.
|
|
||||||
|
|
||||||
* Mon Dec 16 2019 Nick Clifton <nickc@redhat.com> - 2.32-15.1
|
|
||||||
- Fix a potential seg-fault in the BFD library when parsing pathalogical debug_info sections. (#1779255)
|
- Fix a potential seg-fault in the BFD library when parsing pathalogical debug_info sections. (#1779255)
|
||||||
- Fix a potential memory exhaustion in the BFD library when parsing corrupt DWARF debug information.
|
- Fix a potential memory exhaustion in the BFD library when parsing corrupt DWARF debug information.
|
||||||
- Backport H.J.Lu's patch to add a workaround for the JCC Errata to the assembler. (#1783958)
|
- Backport H.J.Lu's patch to add a workaround for the JCC Errata to the assembler. (#1779417)
|
||||||
- Fix potential integer overflow in readelf. (#1740470)
|
- Fix potential integer overflow in readelf. (#1740470)
|
||||||
- Fix potential integer overflow in GOLD. (#1739491)
|
- Fix potential integer overflow in GOLD. (#1739491)
|
||||||
|
|
1
dead.package
Normal file
1
dead.package
Normal file
@ -0,0 +1 @@
|
|||||||
|
gcc-toolset-9-binutils package is retired on branch c10s for CS-2551
|
2
sources
Normal file
2
sources
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
SHA512 (binutils-2.32.tar.xz) = d326408f12a03d9a61a9de56584c2af12f81c2e50d2d7e835d51565df8314df01575724afa1e43bd0db45cfc9916b41519b67dfce03232aa4978704492a6994a
|
||||||
|
SHA512 (standards.info.gz) = 52452ec58c9b0045abeb1f7fb29d56a62cd4042edbb5e1685dad5f6932731ace2bf05ec238b2e8d3d851114a2718b511dfc721c996bee8721a873314de7c7358
|
Loading…
Reference in New Issue
Block a user