summaryrefslogtreecommitdiff
path: root/packages/binutils
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2022-02-11 02:00:59 (GMT)
committerAlexey Neyman <stilor@att.net>2022-02-11 08:47:51 (GMT)
commit86c2982568de1ad4d4cc12a65b19231331484405 (patch)
tree2e0b3fb78c30877c0c152d59d0e0fff817b73822 /packages/binutils
parent1210b0c2f45e32ef0867ca00e16b6aadb6a81bf9 (diff)
Run patches thru `manage-packages -P`
This refreshes the line numbers, removes any fuzz (which would make any future forward ports easier) and standardizes the patch/file headers (which makes them easier to read). Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'packages/binutils')
-rw-r--r--packages/binutils/2.26.1/0013-Fix-a-missing-include-of-string.patch4
-rw-r--r--packages/binutils/2.27/0012-Fix-a-missing-include-of-string.patch4
-rw-r--r--packages/binutils/2.28.1/0009-Fix-a-missing-include-of-string.patch4
-rw-r--r--packages/binutils/2.29.1/0009-Fix-a-missing-include-of-string.patch4
-rw-r--r--packages/binutils/2.30/0009-Fix-a-missing-include-of-string.patch4
-rw-r--r--packages/binutils/2.31.1/0012-Fix-a-missing-include-of-string.patch4
-rw-r--r--packages/binutils/2.32/0009-Fix-a-missing-include-of-string.patch4
-rw-r--r--packages/binutils/2.33.1/0000-sh-conf.patch4
-rw-r--r--packages/binutils/2.33.1/0001-ld_makefile_patch.patch4
-rw-r--r--packages/binutils/2.33.1/0002-check_ldrunpath_length.patch4
-rw-r--r--packages/binutils/2.33.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch2
-rw-r--r--packages/binutils/2.33.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch18
-rw-r--r--packages/binutils/2.33.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch4
-rw-r--r--packages/binutils/2.33.1/0007-sysroot.patch2
-rw-r--r--packages/binutils/2.33.1/0008-poison-system-directories.patch26
-rw-r--r--packages/binutils/2.35.1/0000-sh-conf.patch4
-rw-r--r--packages/binutils/2.35.1/0001-ld_makefile_patch.patch4
-rw-r--r--packages/binutils/2.35.1/0002-check_ldrunpath_length.patch4
-rw-r--r--packages/binutils/2.35.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch2
-rw-r--r--packages/binutils/2.35.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch18
-rw-r--r--packages/binutils/2.35.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch4
-rw-r--r--packages/binutils/2.35.1/0007-sysroot.patch2
-rw-r--r--packages/binutils/2.35.1/0008-poison-system-directories.patch26
-rw-r--r--packages/binutils/2.35.1/0009-Import-patch-from-mainline-to-fix-decoding-DWARF-inf.patch13
-rw-r--r--packages/binutils/2.35.1/0010-arm-Fix-the-wrong-error-message-string-for-mve-vldr-.patch23
-rw-r--r--packages/binutils/2.36.1/0000-sh-conf.patch4
-rw-r--r--packages/binutils/2.36.1/0001-ld_makefile_patch.patch4
-rw-r--r--packages/binutils/2.36.1/0002-check_ldrunpath_length.patch4
-rw-r--r--packages/binutils/2.36.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch2
-rw-r--r--packages/binutils/2.36.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch18
-rw-r--r--packages/binutils/2.36.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch4
-rw-r--r--packages/binutils/2.36.1/0007-sysroot.patch2
-rw-r--r--packages/binutils/2.36.1/0008-poison-system-directories.patch26
-rw-r--r--packages/binutils/2.37/0001-check_ldrunpath_length.patch (renamed from packages/binutils/2.37/0002-check_ldrunpath_length.patch)0
-rw-r--r--packages/binutils/2.37/0002-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch (renamed from packages/binutils/2.37/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch)0
-rw-r--r--packages/binutils/2.37/0003-Dont-link-to-libfl-as-its-unnecessary.patch (renamed from packages/binutils/2.37/0004-Dont-link-to-libfl-as-its-unnecessary.patch)0
-rw-r--r--packages/binutils/2.37/0004-Darwin-gold-binary-cc-include-string-not-cstring.patch (renamed from packages/binutils/2.37/0005-Darwin-gold-binary-cc-include-string-not-cstring.patch)0
-rw-r--r--packages/binutils/2.37/0005-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch (renamed from packages/binutils/2.37/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch)0
-rw-r--r--packages/binutils/2.37/0006-sysroot.patch (renamed from packages/binutils/2.37/0007-sysroot.patch)0
-rw-r--r--packages/binutils/2.37/0007-poison-system-directories.patch (renamed from packages/binutils/2.37/0008-poison-system-directories.patch)0
-rw-r--r--packages/binutils/2.37/0008-arc-Fix-potential-invalid-pointer-access-when-fixing.patch (renamed from packages/binutils/2.37/0009-arc-Fix-potential-invalid-pointer-access-when-fixing.patch)0
-rw-r--r--packages/binutils/2.37/0009-change-uint-to-unsigned.patch (renamed from packages/binutils/2.37/0010-change-uint-to-unsigned.patch)10
-rw-r--r--packages/binutils/2.37/0010-bfd-close-the-file-descriptor-if-there-is-no-archive-fd.patch (renamed from packages/binutils/2.37/0011-bfd-close-the-file-descriptor-if-there-is-no-archive-fd.patch)55
-rw-r--r--packages/binutils/2.37/0011-pr28391-strip-objcopy-preserve-dates-a-cannot-set-time.patch (renamed from packages/binutils/2.37/0012-pr28391-strip-objcopy-preserve-dates-a-cannot-set-time.patch)15
-rw-r--r--packages/binutils/2.37/0012-ld-pru-fix-resource_table-output-section-alignment.patch (renamed from packages/binutils/2.37/0013-ld-pru-fix-resource_table-output-section-alignment.patch)13
-rw-r--r--packages/binutils/2.37/0013-pr28422-build_id-use-after-free.patch (renamed from packages/binutils/2.37/0014-pr28422-build_id-use-after-free.patch)9
-rw-r--r--packages/binutils/2.37/0014-pr28459-readelf-issues-bogus-warning.patch (renamed from packages/binutils/2.37/0015-pr28459-readelf-issues-bogus-warning.patch)9
-rw-r--r--packages/binutils/2.37/0015-pr28417-std-string-no-longer-allows-accepting-nullptr_t.patch (renamed from packages/binutils/2.37/0016-pr28417-std-string-no-longer-allows-accepting-nullptr_t.patch)15
-rw-r--r--packages/binutils/2.37/0016-pr28540-segmentation-fault-on-NULL-byte_get.patch (renamed from packages/binutils/2.37/0017-pr28540-segmentation-fault-on-NULL-byte_get.patch)9
-rw-r--r--packages/binutils/2.37/0017-gold-place-note-gnu-property-section-before-other-note-sections.patch (renamed from packages/binutils/2.37/0018-gold-place-note-gnu-property-section-before-other-note-sections.patch)15
-rw-r--r--packages/binutils/2.37/0018-waddress-warning-in-ldelf.c.patch (renamed from packages/binutils/2.37/0019-waddress-warning-in-ldelf.c.patch)9
51 files changed, 155 insertions, 260 deletions
diff --git a/packages/binutils/2.26.1/0013-Fix-a-missing-include-of-string.patch b/packages/binutils/2.26.1/0013-Fix-a-missing-include-of-string.patch
index b04033a..8ba0e8d 100644
--- a/packages/binutils/2.26.1/0013-Fix-a-missing-include-of-string.patch
+++ b/packages/binutils/2.26.1/0013-Fix-a-missing-include-of-string.patch
@@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
- gold/errors.h | 1 +
+ gold/errors.h | 1 +
1 file changed, 1 insertion(+)
-diff --git a/gold/errors.h b/gold/errors.h
-index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@
diff --git a/packages/binutils/2.27/0012-Fix-a-missing-include-of-string.patch b/packages/binutils/2.27/0012-Fix-a-missing-include-of-string.patch
index b04033a..8ba0e8d 100644
--- a/packages/binutils/2.27/0012-Fix-a-missing-include-of-string.patch
+++ b/packages/binutils/2.27/0012-Fix-a-missing-include-of-string.patch
@@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
- gold/errors.h | 1 +
+ gold/errors.h | 1 +
1 file changed, 1 insertion(+)
-diff --git a/gold/errors.h b/gold/errors.h
-index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@
diff --git a/packages/binutils/2.28.1/0009-Fix-a-missing-include-of-string.patch b/packages/binutils/2.28.1/0009-Fix-a-missing-include-of-string.patch
index b04033a..8ba0e8d 100644
--- a/packages/binutils/2.28.1/0009-Fix-a-missing-include-of-string.patch
+++ b/packages/binutils/2.28.1/0009-Fix-a-missing-include-of-string.patch
@@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
- gold/errors.h | 1 +
+ gold/errors.h | 1 +
1 file changed, 1 insertion(+)
-diff --git a/gold/errors.h b/gold/errors.h
-index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@
diff --git a/packages/binutils/2.29.1/0009-Fix-a-missing-include-of-string.patch b/packages/binutils/2.29.1/0009-Fix-a-missing-include-of-string.patch
index b04033a..8ba0e8d 100644
--- a/packages/binutils/2.29.1/0009-Fix-a-missing-include-of-string.patch
+++ b/packages/binutils/2.29.1/0009-Fix-a-missing-include-of-string.patch
@@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
- gold/errors.h | 1 +
+ gold/errors.h | 1 +
1 file changed, 1 insertion(+)
-diff --git a/gold/errors.h b/gold/errors.h
-index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@
diff --git a/packages/binutils/2.30/0009-Fix-a-missing-include-of-string.patch b/packages/binutils/2.30/0009-Fix-a-missing-include-of-string.patch
index b04033a..8ba0e8d 100644
--- a/packages/binutils/2.30/0009-Fix-a-missing-include-of-string.patch
+++ b/packages/binutils/2.30/0009-Fix-a-missing-include-of-string.patch
@@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
- gold/errors.h | 1 +
+ gold/errors.h | 1 +
1 file changed, 1 insertion(+)
-diff --git a/gold/errors.h b/gold/errors.h
-index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@
diff --git a/packages/binutils/2.31.1/0012-Fix-a-missing-include-of-string.patch b/packages/binutils/2.31.1/0012-Fix-a-missing-include-of-string.patch
index b04033a..8ba0e8d 100644
--- a/packages/binutils/2.31.1/0012-Fix-a-missing-include-of-string.patch
+++ b/packages/binutils/2.31.1/0012-Fix-a-missing-include-of-string.patch
@@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
- gold/errors.h | 1 +
+ gold/errors.h | 1 +
1 file changed, 1 insertion(+)
-diff --git a/gold/errors.h b/gold/errors.h
-index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@
diff --git a/packages/binutils/2.32/0009-Fix-a-missing-include-of-string.patch b/packages/binutils/2.32/0009-Fix-a-missing-include-of-string.patch
index b04033a..8ba0e8d 100644
--- a/packages/binutils/2.32/0009-Fix-a-missing-include-of-string.patch
+++ b/packages/binutils/2.32/0009-Fix-a-missing-include-of-string.patch
@@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
- gold/errors.h | 1 +
+ gold/errors.h | 1 +
1 file changed, 1 insertion(+)
-diff --git a/gold/errors.h b/gold/errors.h
-index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@
diff --git a/packages/binutils/2.33.1/0000-sh-conf.patch b/packages/binutils/2.33.1/0000-sh-conf.patch
index f636289..ecd28af 100644
--- a/packages/binutils/2.33.1/0000-sh-conf.patch
+++ b/packages/binutils/2.33.1/0000-sh-conf.patch
@@ -12,7 +12,7 @@ inept targets than that one, really. Go look, I promise).
--- a/configure
+++ b/configure
-@@ -3865,7 +3865,7 @@ case "${target}" in
+@@ -3865,7 +3865,7 @@
nvptx*-*-*)
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
;;
@@ -23,7 +23,7 @@ inept targets than that one, really. Go look, I promise).
;;
--- a/configure.ac
+++ b/configure.ac
-@@ -1158,7 +1158,7 @@ case "${target}" in
+@@ -1158,7 +1158,7 @@
nvptx*-*-*)
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
;;
diff --git a/packages/binutils/2.33.1/0001-ld_makefile_patch.patch b/packages/binutils/2.33.1/0001-ld_makefile_patch.patch
index e76207e..f73ff26 100644
--- a/packages/binutils/2.33.1/0001-ld_makefile_patch.patch
+++ b/packages/binutils/2.33.1/0001-ld_makefile_patch.patch
@@ -5,7 +5,7 @@
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
-@@ -57,7 +57,7 @@ endif
+@@ -57,7 +57,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
@@ -16,7 +16,7 @@
EMULATION_OFILES = @EMULATION_OFILES@
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
-@@ -563,7 +563,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
+@@ -563,7 +563,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
diff --git a/packages/binutils/2.33.1/0002-check_ldrunpath_length.patch b/packages/binutils/2.33.1/0002-check_ldrunpath_length.patch
index 131c6bf..95730af 100644
--- a/packages/binutils/2.33.1/0002-check_ldrunpath_length.patch
+++ b/packages/binutils/2.33.1/0002-check_ldrunpath_length.patch
@@ -4,7 +4,7 @@
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
-@@ -1470,6 +1470,8 @@ fragment <<EOF
+@@ -1470,6 +1470,8 @@
&& command_line.rpath == NULL)
{
path = (const char *) getenv ("LD_RUN_PATH");
@@ -13,7 +13,7 @@
if (path
&& gld${EMULATION_NAME}_search_needed (path, &n, force))
break;
-@@ -1745,6 +1747,8 @@ gld${EMULATION_NAME}_before_allocation (
+@@ -1745,6 +1747,8 @@
rpath = command_line.rpath;
if (rpath == NULL)
rpath = (const char *) getenv ("LD_RUN_PATH");
diff --git a/packages/binutils/2.33.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch b/packages/binutils/2.33.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
index c712df5..99dee96 100644
--- a/packages/binutils/2.33.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
+++ b/packages/binutils/2.33.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
@@ -4,7 +4,7 @@
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
-@@ -101,7 +101,7 @@ Lock_impl_threads::Lock_impl_threads()
+@@ -101,7 +101,7 @@
int err = pthread_mutexattr_init(&attr);
if (err != 0)
gold_fatal(_("pthead_mutexattr_init failed: %s"), strerror(err));
diff --git a/packages/binutils/2.33.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch b/packages/binutils/2.33.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch
index 582983f..e40f317 100644
--- a/packages/binutils/2.33.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch
+++ b/packages/binutils/2.33.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch
@@ -9,7 +9,7 @@
--- a/binutils/configure
+++ b/binutils/configure
-@@ -12449,6 +12449,7 @@ fi
+@@ -12449,6 +12449,7 @@
done
test -n "$YACC" || YACC="yacc"
@@ -17,7 +17,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
-@@ -12612,6 +12613,8 @@ esac
+@@ -12612,6 +12613,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@@ -28,7 +28,7 @@
# If we haven't got the data from the intl directory,
--- a/binutils/configure.ac
+++ b/binutils/configure.ac
-@@ -86,7 +86,10 @@ if test -z "$host" ; then
+@@ -86,7 +86,10 @@
fi
AC_PROG_YACC
@@ -41,7 +41,7 @@
ZW_GNU_GETTEXT_SISTER_DIR
--- a/gas/configure
+++ b/gas/configure
-@@ -13469,6 +13469,7 @@ fi
+@@ -13469,6 +13469,7 @@
done
test -n "$YACC" || YACC="yacc"
@@ -49,7 +49,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
-@@ -13632,6 +13633,8 @@ esac
+@@ -13632,6 +13633,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@@ -60,7 +60,7 @@
# If we haven't got the data from the intl directory,
--- a/gas/configure.ac
+++ b/gas/configure.ac
-@@ -893,7 +893,10 @@ AC_DEFINE_UNQUOTED(TARGET_VENDOR, "${tar
+@@ -893,7 +893,10 @@
AC_DEFINE_UNQUOTED(TARGET_OS, "${target_os}", [Target OS.])
AC_PROG_YACC
@@ -73,7 +73,7 @@
ZW_GNU_GETTEXT_SISTER_DIR
--- a/ld/configure
+++ b/ld/configure
-@@ -16537,6 +16537,7 @@ fi
+@@ -16537,6 +16537,7 @@
done
test -n "$YACC" || YACC="yacc"
@@ -81,7 +81,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
-@@ -16700,6 +16701,8 @@ esac
+@@ -16700,6 +16701,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@@ -92,7 +92,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
--- a/ld/configure.ac
+++ b/ld/configure.ac
-@@ -243,7 +243,10 @@ AM_PO_SUBDIRS
+@@ -243,7 +243,10 @@
AC_EXEEXT
AC_PROG_YACC
diff --git a/packages/binutils/2.33.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch b/packages/binutils/2.33.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch
index 0537aa4..2b32b9a 100644
--- a/packages/binutils/2.33.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch
+++ b/packages/binutils/2.33.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch
@@ -15,7 +15,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
-@@ -3623,6 +3623,28 @@ u16_mbtouc (wchar_t * puc, const unsigne
+@@ -3623,6 +3623,28 @@
}
#endif /* HAVE_WCHAR_H and not Cygwin/Mingw */
@@ -46,7 +46,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
rsrc_cmp (bfd_boolean is_name, rsrc_entry * a, rsrc_entry * b)
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
-@@ -284,9 +284,18 @@ Condvar::~Condvar()
+@@ -284,9 +284,18 @@
class Once_initialize
{
public:
diff --git a/packages/binutils/2.33.1/0007-sysroot.patch b/packages/binutils/2.33.1/0007-sysroot.patch
index bcf6f34..ba7940a 100644
--- a/packages/binutils/2.33.1/0007-sysroot.patch
+++ b/packages/binutils/2.33.1/0007-sysroot.patch
@@ -11,7 +11,7 @@ http://sourceware.org/bugzilla/show_bug.cgi?id=10340
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
-@@ -338,18 +338,25 @@ ldfile_open_file_search (const char *arc
+@@ -338,18 +338,25 @@
directory first. */
if (!entry->flags.maybe_archive)
{
diff --git a/packages/binutils/2.33.1/0008-poison-system-directories.patch b/packages/binutils/2.33.1/0008-poison-system-directories.patch
index 907036c..461c8df 100644
--- a/packages/binutils/2.33.1/0008-poison-system-directories.patch
+++ b/packages/binutils/2.33.1/0008-poison-system-directories.patch
@@ -85,7 +85,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--- a/ld/configure
+++ b/ld/configure
-@@ -823,6 +823,7 @@ with_lib_path
+@@ -823,6 +823,7 @@
enable_targets
enable_64_bit_bfd
with_sysroot
@@ -93,7 +93,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
enable_gold
enable_got
enable_compressed_debug_sections
-@@ -1487,6 +1488,8 @@ Optional Features:
+@@ -1487,6 +1488,8 @@
--disable-largefile omit support for large files
--enable-targets alternative target configurations
--enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
@@ -102,7 +102,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--enable-gold[=ARG] build gold [ARG={default,yes,no}]
--enable-got=<type> GOT handling scheme (target, single, negative,
multigot)
-@@ -15804,7 +15807,18 @@ else
+@@ -15804,7 +15807,18 @@
fi
@@ -123,7 +123,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
if test "${enable_got+set}" = set; then :
--- a/ld/configure.ac
+++ b/ld/configure.ac
-@@ -94,6 +94,16 @@ AC_SUBST(use_sysroot)
+@@ -94,6 +94,16 @@
AC_SUBST(TARGET_SYSTEM_ROOT)
AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
@@ -142,7 +142,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
dnl "installed_linker" is the installed BFD linker name.
--- a/ld/ld.h
+++ b/ld/ld.h
-@@ -175,6 +175,14 @@ typedef struct
+@@ -175,6 +175,14 @@
/* If set, display the target memory usage (per memory region). */
bfd_boolean print_memory_usage;
@@ -159,7 +159,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
in the linker script. */
--- a/ld/ld.texi
+++ b/ld/ld.texi
-@@ -2557,6 +2557,18 @@ string identifying the original linked f
+@@ -2557,6 +2557,18 @@
Passing @code{none} for @var{style} disables the setting from any
@code{--build-id} options earlier on the command line.
@@ -180,7 +180,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
@c man end
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
-@@ -116,6 +116,23 @@ ldfile_add_library_path (const char *nam
+@@ -116,6 +116,23 @@
new_dirs->name = concat (ld_sysroot, name + strlen ("$SYSROOT"), (const char *) NULL);
else
new_dirs->name = xstrdup (name);
@@ -206,7 +206,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* Try to open a BFD for a lang_input_statement. */
--- a/ld/ldlex.h
+++ b/ld/ldlex.h
-@@ -150,6 +150,8 @@ enum option_values
+@@ -150,6 +150,8 @@
OPTION_FORCE_GROUP_ALLOCATION,
OPTION_PRINT_MAP_DISCARDED,
OPTION_NO_PRINT_MAP_DISCARDED,
@@ -217,7 +217,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* The initial parser states. */
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
-@@ -270,6 +270,8 @@ main (int argc, char **argv)
+@@ -270,6 +270,8 @@
command_line.warn_mismatch = TRUE;
command_line.warn_search_mismatch = TRUE;
command_line.check_section_addresses = -1;
@@ -228,7 +228,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
-@@ -549,6 +549,14 @@ static const struct ld_option ld_options
+@@ -549,6 +549,14 @@
{ {"no-print-map-discarded", no_argument, NULL, OPTION_NO_PRINT_MAP_DISCARDED},
'\0', NULL, N_("Do not show discarded sections in map file output"),
TWO_DASHES },
@@ -243,7 +243,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
};
#define OPTION_COUNT ARRAY_SIZE (ld_options)
-@@ -561,6 +569,7 @@ parse_args (unsigned argc, char **argv)
+@@ -561,6 +569,7 @@
int ingroup = 0;
char *default_dirlist = NULL;
char *shortopts;
@@ -251,7 +251,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
struct option *longopts;
struct option *really_longopts;
int last_optind;
-@@ -1549,6 +1558,14 @@ parse_args (unsigned argc, char **argv)
+@@ -1549,6 +1558,14 @@
}
break;
@@ -266,7 +266,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
case OPTION_PUSH_STATE:
input_flags.pushed = xmemdup (&input_flags,
sizeof (input_flags),
-@@ -1600,6 +1617,10 @@ parse_args (unsigned argc, char **argv)
+@@ -1600,6 +1617,10 @@
command_line.soname = NULL;
}
diff --git a/packages/binutils/2.35.1/0000-sh-conf.patch b/packages/binutils/2.35.1/0000-sh-conf.patch
index 06693ef..b7e07d9 100644
--- a/packages/binutils/2.35.1/0000-sh-conf.patch
+++ b/packages/binutils/2.35.1/0000-sh-conf.patch
@@ -12,7 +12,7 @@ inept targets than that one, really. Go look, I promise).
--- a/configure
+++ b/configure
-@@ -3937,7 +3937,7 @@ case "${target}" in
+@@ -3937,7 +3937,7 @@
nvptx*-*-*)
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
;;
@@ -23,7 +23,7 @@ inept targets than that one, really. Go look, I promise).
;;
--- a/configure.ac
+++ b/configure.ac
-@@ -1178,7 +1178,7 @@ case "${target}" in
+@@ -1178,7 +1178,7 @@
nvptx*-*-*)
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
;;
diff --git a/packages/binutils/2.35.1/0001-ld_makefile_patch.patch b/packages/binutils/2.35.1/0001-ld_makefile_patch.patch
index 0eb9496..5a64fb9 100644
--- a/packages/binutils/2.35.1/0001-ld_makefile_patch.patch
+++ b/packages/binutils/2.35.1/0001-ld_makefile_patch.patch
@@ -5,7 +5,7 @@
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
-@@ -50,7 +50,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
+@@ -50,7 +50,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
@@ -16,7 +16,7 @@
EMULATION_OFILES = @EMULATION_OFILES@
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
-@@ -555,7 +555,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
+@@ -555,7 +555,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
diff --git a/packages/binutils/2.35.1/0002-check_ldrunpath_length.patch b/packages/binutils/2.35.1/0002-check_ldrunpath_length.patch
index 0edd2fe..407b48c 100644
--- a/packages/binutils/2.35.1/0002-check_ldrunpath_length.patch
+++ b/packages/binutils/2.35.1/0002-check_ldrunpath_length.patch
@@ -4,7 +4,7 @@
--- a/ld/ldelf.c
+++ b/ld/ldelf.c
-@@ -1247,6 +1247,8 @@ ldelf_after_open (int use_libpath, int n
+@@ -1247,6 +1247,8 @@
&& command_line.rpath == NULL)
{
path = (const char *) getenv ("LD_RUN_PATH");
@@ -13,7 +13,7 @@
if (path
&& ldelf_search_needed (path, &n, force,
is_linux, elfsize))
-@@ -1605,6 +1607,8 @@ ldelf_before_allocation (char *audit, ch
+@@ -1605,6 +1607,8 @@
rpath = command_line.rpath;
if (rpath == NULL)
rpath = (const char *) getenv ("LD_RUN_PATH");
diff --git a/packages/binutils/2.35.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch b/packages/binutils/2.35.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
index c712df5..99dee96 100644
--- a/packages/binutils/2.35.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
+++ b/packages/binutils/2.35.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
@@ -4,7 +4,7 @@
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
-@@ -101,7 +101,7 @@ Lock_impl_threads::Lock_impl_threads()
+@@ -101,7 +101,7 @@
int err = pthread_mutexattr_init(&attr);
if (err != 0)
gold_fatal(_("pthead_mutexattr_init failed: %s"), strerror(err));
diff --git a/packages/binutils/2.35.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch b/packages/binutils/2.35.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch
index 02efa21..fd6b203 100644
--- a/packages/binutils/2.35.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch
+++ b/packages/binutils/2.35.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch
@@ -9,7 +9,7 @@
--- a/binutils/configure
+++ b/binutils/configure
-@@ -12570,6 +12570,7 @@ fi
+@@ -12570,6 +12570,7 @@
done
test -n "$YACC" || YACC="yacc"
@@ -17,7 +17,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
-@@ -12733,6 +12734,8 @@ esac
+@@ -12733,6 +12734,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@@ -28,7 +28,7 @@
# If we haven't got the data from the intl directory,
--- a/binutils/configure.ac
+++ b/binutils/configure.ac
-@@ -95,7 +95,10 @@ if test -z "$host" ; then
+@@ -95,7 +95,10 @@
fi
AC_PROG_YACC
@@ -41,7 +41,7 @@
ZW_GNU_GETTEXT_SISTER_DIR
--- a/gas/configure
+++ b/gas/configure
-@@ -13519,6 +13519,7 @@ fi
+@@ -13519,6 +13519,7 @@
done
test -n "$YACC" || YACC="yacc"
@@ -49,7 +49,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
-@@ -13682,6 +13683,8 @@ esac
+@@ -13682,6 +13683,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@@ -60,7 +60,7 @@
# If we haven't got the data from the intl directory,
--- a/gas/configure.ac
+++ b/gas/configure.ac
-@@ -924,7 +924,10 @@ AC_DEFINE_UNQUOTED(TARGET_VENDOR, "${tar
+@@ -924,7 +924,10 @@
AC_DEFINE_UNQUOTED(TARGET_OS, "${target_os}", [Target OS.])
AC_PROG_YACC
@@ -73,7 +73,7 @@
ZW_GNU_GETTEXT_SISTER_DIR
--- a/ld/configure
+++ b/ld/configure
-@@ -16584,6 +16584,7 @@ fi
+@@ -16584,6 +16584,7 @@
done
test -n "$YACC" || YACC="yacc"
@@ -81,7 +81,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
-@@ -16747,6 +16748,8 @@ esac
+@@ -16747,6 +16748,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@@ -92,7 +92,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
--- a/ld/configure.ac
+++ b/ld/configure.ac
-@@ -258,7 +258,10 @@ AM_PO_SUBDIRS
+@@ -258,7 +258,10 @@
AC_EXEEXT
AC_PROG_YACC
diff --git a/packages/binutils/2.35.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch b/packages/binutils/2.35.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch
index 631d013..6f2d1e1 100644
--- a/packages/binutils/2.35.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch
+++ b/packages/binutils/2.35.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch
@@ -15,7 +15,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
-@@ -3696,6 +3696,28 @@ u16_mbtouc (wchar_t * puc, const unsigne
+@@ -3696,6 +3696,28 @@
}
#endif /* HAVE_WCHAR_H and not Cygwin/Mingw */
@@ -46,7 +46,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
rsrc_cmp (bfd_boolean is_name, rsrc_entry * a, rsrc_entry * b)
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
-@@ -284,9 +284,18 @@ Condvar::~Condvar()
+@@ -284,9 +284,18 @@
class Once_initialize
{
public:
diff --git a/packages/binutils/2.35.1/0007-sysroot.patch b/packages/binutils/2.35.1/0007-sysroot.patch
index c98f147..0140fe8 100644
--- a/packages/binutils/2.35.1/0007-sysroot.patch
+++ b/packages/binutils/2.35.1/0007-sysroot.patch
@@ -11,7 +11,7 @@ http://sourceware.org/bugzilla/show_bug.cgi?id=10340
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
-@@ -340,18 +340,25 @@ ldfile_open_file_search (const char *arc
+@@ -340,18 +340,25 @@
directory first. */
if (!entry->flags.maybe_archive)
{
diff --git a/packages/binutils/2.35.1/0008-poison-system-directories.patch b/packages/binutils/2.35.1/0008-poison-system-directories.patch
index d836f8a..970a7a1 100644
--- a/packages/binutils/2.35.1/0008-poison-system-directories.patch
+++ b/packages/binutils/2.35.1/0008-poison-system-directories.patch
@@ -85,7 +85,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--- a/ld/configure
+++ b/ld/configure
-@@ -826,6 +826,7 @@ with_lib_path
+@@ -826,6 +826,7 @@
enable_targets
enable_64_bit_bfd
with_sysroot
@@ -93,7 +93,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
enable_gold
enable_got
enable_compressed_debug_sections
-@@ -1493,6 +1494,8 @@ Optional Features:
+@@ -1493,6 +1494,8 @@
--disable-largefile omit support for large files
--enable-targets alternative target configurations
--enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
@@ -102,7 +102,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--enable-gold[=ARG] build gold [ARG={default,yes,no}]
--enable-got=<type> GOT handling scheme (target, single, negative,
multigot)
-@@ -15814,7 +15817,18 @@ else
+@@ -15814,7 +15817,18 @@
fi
@@ -123,7 +123,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
if test "${enable_got+set}" = set; then :
--- a/ld/configure.ac
+++ b/ld/configure.ac
-@@ -94,6 +94,16 @@ AC_SUBST(use_sysroot)
+@@ -94,6 +94,16 @@
AC_SUBST(TARGET_SYSTEM_ROOT)
AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
@@ -142,7 +142,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
dnl "installed_linker" is the installed BFD linker name.
--- a/ld/ld.h
+++ b/ld/ld.h
-@@ -161,6 +161,14 @@ typedef struct
+@@ -161,6 +161,14 @@
/* If set, display the target memory usage (per memory region). */
bfd_boolean print_memory_usage;
@@ -159,7 +159,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
in the linker script. */
--- a/ld/ld.texi
+++ b/ld/ld.texi
-@@ -2655,6 +2655,18 @@ string identifying the original linked f
+@@ -2655,6 +2655,18 @@
Passing @code{none} for @var{style} disables the setting from any
@code{--build-id} options earlier on the command line.
@@ -180,7 +180,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
@c man end
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
-@@ -117,6 +117,23 @@ ldfile_add_library_path (const char *nam
+@@ -117,6 +117,23 @@
new_dirs->name = concat (ld_sysroot, name + strlen ("$SYSROOT"), (const char *) NULL);
else
new_dirs->name = xstrdup (name);
@@ -206,7 +206,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* Try to open a BFD for a lang_input_statement. */
--- a/ld/ldlex.h
+++ b/ld/ldlex.h
-@@ -155,6 +155,8 @@ enum option_values
+@@ -155,6 +155,8 @@
OPTION_NON_CONTIGUOUS_REGIONS,
OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS,
OPTION_DEPENDENCY_FILE,
@@ -217,7 +217,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* The initial parser states. */
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
-@@ -321,6 +321,8 @@ main (int argc, char **argv)
+@@ -321,6 +321,8 @@
command_line.warn_mismatch = TRUE;
command_line.warn_search_mismatch = TRUE;
command_line.check_section_addresses = -1;
@@ -228,7 +228,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
-@@ -572,6 +572,14 @@ static const struct ld_option ld_options
+@@ -572,6 +572,14 @@
{ {"no-print-map-discarded", no_argument, NULL, OPTION_NO_PRINT_MAP_DISCARDED},
'\0', NULL, N_("Do not show discarded sections in map file output"),
TWO_DASHES },
@@ -243,7 +243,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
};
#define OPTION_COUNT ARRAY_SIZE (ld_options)
-@@ -584,6 +592,7 @@ parse_args (unsigned argc, char **argv)
+@@ -584,6 +592,7 @@
int ingroup = 0;
char *default_dirlist = NULL;
char *shortopts;
@@ -251,7 +251,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
struct option *longopts;
struct option *really_longopts;
int last_optind;
-@@ -1591,6 +1600,14 @@ parse_args (unsigned argc, char **argv)
+@@ -1591,6 +1600,14 @@
}
break;
@@ -266,7 +266,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
case OPTION_PUSH_STATE:
input_flags.pushed = xmemdup (&input_flags,
sizeof (input_flags),
-@@ -1681,6 +1698,10 @@ parse_args (unsigned argc, char **argv)
+@@ -1681,6 +1698,10 @@
command_line.soname = NULL;
}
diff --git a/packages/binutils/2.35.1/0009-Import-patch-from-mainline-to-fix-decoding-DWARF-inf.patch b/packages/binutils/2.35.1/0009-Import-patch-from-mainline-to-fix-decoding-DWARF-inf.patch
index b6b4496..674347f 100644
--- a/packages/binutils/2.35.1/0009-Import-patch-from-mainline-to-fix-decoding-DWARF-inf.patch
+++ b/packages/binutils/2.35.1/0009-Import-patch-from-mainline-to-fix-decoding-DWARF-inf.patch
@@ -8,11 +8,13 @@ Subject: [PATCH] Import patch from mainline to fix decoding DWARF information
* dwarf2.c (scan_unit_for_symbols): Add member entries to the
variable table.
---
-diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
-index b8f0008a10d..977bf43a6a1 100644
+---
+ bfd/dwarf2.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
-@@ -3404,7 +3404,8 @@ scan_unit_for_symbols (struct comp_unit *unit)
+@@ -3404,7 +3404,8 @@
else
{
func = NULL;
@@ -22,7 +24,7 @@ index b8f0008a10d..977bf43a6a1 100644
{
size_t amt = sizeof (struct varinfo);
var = (struct varinfo *) bfd_zalloc (abfd, amt);
-@@ -3516,7 +3517,7 @@ scan_unit_for_symbols (struct comp_unit *unit)
+@@ -3516,7 +3517,7 @@
spec_var = lookup_var_by_offset (attr.u.val,
unit->variable_table);
if (spec_var == NULL)
@@ -31,6 +33,3 @@ index b8f0008a10d..977bf43a6a1 100644
_bfd_error_handler (_("DWARF error: could not find "
"variable specification "
"at offset %lx"),
---
-2.25.4
-
diff --git a/packages/binutils/2.35.1/0010-arm-Fix-the-wrong-error-message-string-for-mve-vldr-.patch b/packages/binutils/2.35.1/0010-arm-Fix-the-wrong-error-message-string-for-mve-vldr-.patch
index 9ea369a..7276357 100644
--- a/packages/binutils/2.35.1/0010-arm-Fix-the-wrong-error-message-string-for-mve-vldr-.patch
+++ b/packages/binutils/2.35.1/0010-arm-Fix-the-wrong-error-message-string-for-mve-vldr-.patch
@@ -36,11 +36,16 @@ gas/ChangeLog:
* testsuite/gas/arm/mve-vldr-vstr-bad.l: Likewise.
* testsuite/gas/arm/mve-vldr-vstr-bad.s: Likewise.
---
-diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
-index a9aaffa3bdd..64475d66729 100644
+---
+ gas/config/tc-arm.c | 10
+ gas/testsuite/gas/arm/mve-vldr-vstr-bad.d | 5
+ gas/testsuite/gas/arm/mve-vldr-vstr-bad.l | 811 ++++++++++++++++++++++++++++++
+ gas/testsuite/gas/arm/mve-vldr-vstr-bad.s | 30 +
+ 4 files changed, 855 insertions(+), 1 deletion(-)
+
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
-@@ -5936,7 +5936,15 @@ parse_address_main (char **str, int i, int group_relocations,
+@@ -5936,7 +5936,15 @@
if (skip_past_char (&p, '[') == FAIL)
{
@@ -57,9 +62,6 @@ index a9aaffa3bdd..64475d66729 100644
{
/* Bare address - translate to PC-relative offset. */
inst.relocs[0].pc_rel = 1;
-diff --git a/gas/testsuite/gas/arm/mve-vldr-vstr-bad.d b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.d
-new file mode 100644
-index 00000000000..8989688f0f3
--- /dev/null
+++ b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.d
@@ -0,0 +1,5 @@
@@ -68,9 +70,6 @@ index 00000000000..8989688f0f3
+#error_output: mve-vldr-vstr-bad.l
+
+.*: +file format .*arm.*
-diff --git a/gas/testsuite/gas/arm/mve-vldr-vstr-bad.l b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.l
-new file mode 100644
-index 00000000000..2df3a37ac02
--- /dev/null
+++ b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.l
@@ -0,0 +1,811 @@
@@ -885,9 +884,6 @@ index 00000000000..2df3a37ac02
+[^:]*:30: Error: syntax error -- `vldrw.s32 q7,r14'
+[^:]*:30: Error: syntax error -- `vldrw.u32 q7,r14'
+[^:]*:30: Error: syntax error -- `vstrw.32 q7,r14'
-diff --git a/gas/testsuite/gas/arm/mve-vldr-vstr-bad.s b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.s
-new file mode 100644
-index 00000000000..c72c1296d2f
--- /dev/null
+++ b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.s
@@ -0,0 +1,30 @@
@@ -921,6 +917,3 @@ index 00000000000..c72c1296d2f
+vstrw.32 \op2, \op3
+.endr
+.endr
---
-2.25.4
-
diff --git a/packages/binutils/2.36.1/0000-sh-conf.patch b/packages/binutils/2.36.1/0000-sh-conf.patch
index 83d40a0..39a56e1 100644
--- a/packages/binutils/2.36.1/0000-sh-conf.patch
+++ b/packages/binutils/2.36.1/0000-sh-conf.patch
@@ -12,7 +12,7 @@ inept targets than that one, really. Go look, I promise).
--- a/configure
+++ b/configure
-@@ -3887,7 +3887,7 @@ case "${target}" in
+@@ -3887,7 +3887,7 @@
nvptx*-*-*)
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
;;
@@ -23,7 +23,7 @@ inept targets than that one, really. Go look, I promise).
;;
--- a/configure.ac
+++ b/configure.ac
-@@ -1177,7 +1177,7 @@ case "${target}" in
+@@ -1177,7 +1177,7 @@
nvptx*-*-*)
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
;;
diff --git a/packages/binutils/2.36.1/0001-ld_makefile_patch.patch b/packages/binutils/2.36.1/0001-ld_makefile_patch.patch
index 1c03d02..7c49085 100644
--- a/packages/binutils/2.36.1/0001-ld_makefile_patch.patch
+++ b/packages/binutils/2.36.1/0001-ld_makefile_patch.patch
@@ -5,7 +5,7 @@
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
-@@ -50,7 +50,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
+@@ -50,7 +50,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
@@ -16,7 +16,7 @@
EMULATION_OFILES = @EMULATION_OFILES@
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
-@@ -561,7 +561,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
+@@ -561,7 +561,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
diff --git a/packages/binutils/2.36.1/0002-check_ldrunpath_length.patch b/packages/binutils/2.36.1/0002-check_ldrunpath_length.patch
index d54e656..bf30ca9 100644
--- a/packages/binutils/2.36.1/0002-check_ldrunpath_length.patch
+++ b/packages/binutils/2.36.1/0002-check_ldrunpath_length.patch
@@ -4,7 +4,7 @@
--- a/ld/ldelf.c
+++ b/ld/ldelf.c
-@@ -1248,6 +1248,8 @@ ldelf_after_open (int use_libpath, int n
+@@ -1248,6 +1248,8 @@
&& command_line.rpath == NULL)
{
path = (const char *) getenv ("LD_RUN_PATH");
@@ -13,7 +13,7 @@
if (path
&& ldelf_search_needed (path, &n, force,
is_linux, elfsize))
-@@ -1608,6 +1610,8 @@ ldelf_before_allocation (char *audit, ch
+@@ -1608,6 +1610,8 @@
rpath = command_line.rpath;
if (rpath == NULL)
rpath = (const char *) getenv ("LD_RUN_PATH");
diff --git a/packages/binutils/2.36.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch b/packages/binutils/2.36.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
index c712df5..99dee96 100644
--- a/packages/binutils/2.36.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
+++ b/packages/binutils/2.36.1/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
@@ -4,7 +4,7 @@
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
-@@ -101,7 +101,7 @@ Lock_impl_threads::Lock_impl_threads()
+@@ -101,7 +101,7 @@
int err = pthread_mutexattr_init(&attr);
if (err != 0)
gold_fatal(_("pthead_mutexattr_init failed: %s"), strerror(err));
diff --git a/packages/binutils/2.36.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch b/packages/binutils/2.36.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch
index 5332426..67bac1f 100644
--- a/packages/binutils/2.36.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch
+++ b/packages/binutils/2.36.1/0004-Dont-link-to-libfl-as-its-unnecessary.patch
@@ -9,7 +9,7 @@
--- a/binutils/configure
+++ b/binutils/configure
-@@ -12811,6 +12811,7 @@ fi
+@@ -12811,6 +12811,7 @@
done
test -n "$YACC" || YACC="yacc"
@@ -17,7 +17,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
-@@ -12974,6 +12975,8 @@ esac
+@@ -12974,6 +12975,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@@ -28,7 +28,7 @@
# If we haven't got the data from the intl directory,
--- a/binutils/configure.ac
+++ b/binutils/configure.ac
-@@ -110,7 +110,10 @@ if test -z "$host" ; then
+@@ -110,7 +110,10 @@
fi
AC_PROG_YACC
@@ -41,7 +41,7 @@
ZW_GNU_GETTEXT_SISTER_DIR
--- a/gas/configure
+++ b/gas/configure
-@@ -13558,6 +13558,7 @@ fi
+@@ -13558,6 +13558,7 @@
done
test -n "$YACC" || YACC="yacc"
@@ -49,7 +49,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
-@@ -13721,6 +13722,8 @@ esac
+@@ -13721,6 +13722,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@@ -60,7 +60,7 @@
# If we haven't got the data from the intl directory,
--- a/gas/configure.ac
+++ b/gas/configure.ac
-@@ -931,7 +931,10 @@ AC_DEFINE_UNQUOTED(TARGET_VENDOR, "${tar
+@@ -931,7 +931,10 @@
AC_DEFINE_UNQUOTED(TARGET_OS, "${target_os}", [Target OS.])
AC_PROG_YACC
@@ -73,7 +73,7 @@
ZW_GNU_GETTEXT_SISTER_DIR
--- a/ld/configure
+++ b/ld/configure
-@@ -16623,6 +16623,7 @@ fi
+@@ -16623,6 +16623,7 @@
done
test -n "$YACC" || YACC="yacc"
@@ -81,7 +81,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
-@@ -16786,6 +16787,8 @@ esac
+@@ -16786,6 +16787,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@@ -92,7 +92,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
--- a/ld/configure.ac
+++ b/ld/configure.ac
-@@ -269,7 +269,10 @@ AM_PO_SUBDIRS
+@@ -269,7 +269,10 @@
AC_EXEEXT
AC_PROG_YACC
diff --git a/packages/binutils/2.36.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch b/packages/binutils/2.36.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch
index 87d047c..6d86900 100644
--- a/packages/binutils/2.36.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch
+++ b/packages/binutils/2.36.1/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch
@@ -15,7 +15,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
-@@ -3589,6 +3589,28 @@ u16_mbtouc (wchar_t * puc, const unsigne
+@@ -3589,6 +3589,28 @@
}
#endif /* HAVE_WCHAR_H and not Cygwin/Mingw */
@@ -46,7 +46,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
rsrc_cmp (bfd_boolean is_name, rsrc_entry * a, rsrc_entry * b)
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
-@@ -284,9 +284,18 @@ Condvar::~Condvar()
+@@ -284,9 +284,18 @@
class Once_initialize
{
public:
diff --git a/packages/binutils/2.36.1/0007-sysroot.patch b/packages/binutils/2.36.1/0007-sysroot.patch
index c98f147..0140fe8 100644
--- a/packages/binutils/2.36.1/0007-sysroot.patch
+++ b/packages/binutils/2.36.1/0007-sysroot.patch
@@ -11,7 +11,7 @@ http://sourceware.org/bugzilla/show_bug.cgi?id=10340
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
-@@ -340,18 +340,25 @@ ldfile_open_file_search (const char *arc
+@@ -340,18 +340,25 @@
directory first. */
if (!entry->flags.maybe_archive)
{
diff --git a/packages/binutils/2.36.1/0008-poison-system-directories.patch b/packages/binutils/2.36.1/0008-poison-system-directories.patch
index 126e99c..545a1a3 100644
--- a/packages/binutils/2.36.1/0008-poison-system-directories.patch
+++ b/packages/binutils/2.36.1/0008-poison-system-directories.patch
@@ -85,7 +85,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--- a/ld/configure
+++ b/ld/configure
-@@ -828,6 +828,7 @@ with_lib_path
+@@ -828,6 +828,7 @@
enable_targets
enable_64_bit_bfd
with_sysroot
@@ -93,7 +93,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
enable_gold
enable_got
enable_compressed_debug_sections
-@@ -1496,6 +1497,8 @@ Optional Features:
+@@ -1496,6 +1497,8 @@
--disable-largefile omit support for large files
--enable-targets alternative target configurations
--enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
@@ -102,7 +102,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--enable-gold[=ARG] build gold [ARG={default,yes,no}]
--enable-got=<type> GOT handling scheme (target, single, negative,
multigot)
-@@ -15841,7 +15844,18 @@ else
+@@ -15841,7 +15844,18 @@
fi
@@ -123,7 +123,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
if test "${enable_got+set}" = set; then :
--- a/ld/configure.ac
+++ b/ld/configure.ac
-@@ -94,6 +94,16 @@ AC_SUBST(use_sysroot)
+@@ -94,6 +94,16 @@
AC_SUBST(TARGET_SYSTEM_ROOT)
AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
@@ -142,7 +142,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
dnl "installed_linker" is the installed BFD linker name.
--- a/ld/ld.h
+++ b/ld/ld.h
-@@ -161,6 +161,14 @@ typedef struct
+@@ -161,6 +161,14 @@
/* If set, display the target memory usage (per memory region). */
bfd_boolean print_memory_usage;
@@ -159,7 +159,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
in the linker script. */
--- a/ld/ld.texi
+++ b/ld/ld.texi
-@@ -2810,6 +2810,18 @@ string identifying the original linked f
+@@ -2810,6 +2810,18 @@
Passing @code{none} for @var{style} disables the setting from any
@code{--build-id} options earlier on the command line.
@@ -180,7 +180,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
@c man end
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
-@@ -117,6 +117,23 @@ ldfile_add_library_path (const char *nam
+@@ -117,6 +117,23 @@
new_dirs->name = concat (ld_sysroot, name + strlen ("$SYSROOT"), (const char *) NULL);
else
new_dirs->name = xstrdup (name);
@@ -206,7 +206,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* Try to open a BFD for a lang_input_statement. */
--- a/ld/ldlex.h
+++ b/ld/ldlex.h
-@@ -161,6 +161,8 @@ enum option_values
+@@ -161,6 +161,8 @@
OPTION_CTF_VARIABLES,
OPTION_NO_CTF_VARIABLES,
OPTION_CTF_SHARE_TYPES,
@@ -217,7 +217,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* The initial parser states. */
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
-@@ -323,6 +323,8 @@ main (int argc, char **argv)
+@@ -323,6 +323,8 @@
command_line.warn_mismatch = TRUE;
command_line.warn_search_mismatch = TRUE;
command_line.check_section_addresses = -1;
@@ -228,7 +228,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
-@@ -591,6 +591,14 @@ static const struct ld_option ld_options
+@@ -591,6 +591,14 @@
" <method> is: share-unconflicted (default),\n"
" share-duplicated"),
TWO_DASHES },
@@ -243,7 +243,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
};
#define OPTION_COUNT ARRAY_SIZE (ld_options)
-@@ -603,6 +611,7 @@ parse_args (unsigned argc, char **argv)
+@@ -603,6 +611,7 @@
int ingroup = 0;
char *default_dirlist = NULL;
char *shortopts;
@@ -251,7 +251,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
struct option *longopts;
struct option *really_longopts;
int last_optind;
-@@ -1633,6 +1642,14 @@ parse_args (unsigned argc, char **argv)
+@@ -1633,6 +1642,14 @@
}
break;
@@ -266,7 +266,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
case OPTION_PUSH_STATE:
input_flags.pushed = xmemdup (&input_flags,
sizeof (input_flags),
-@@ -1778,6 +1795,10 @@ parse_args (unsigned argc, char **argv)
+@@ -1778,6 +1795,10 @@
command_line.soname = NULL;
}
diff --git a/packages/binutils/2.37/0002-check_ldrunpath_length.patch b/packages/binutils/2.37/0001-check_ldrunpath_length.patch
index 13518db..13518db 100644
--- a/packages/binutils/2.37/0002-check_ldrunpath_length.patch
+++ b/packages/binutils/2.37/0001-check_ldrunpath_length.patch
diff --git a/packages/binutils/2.37/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch b/packages/binutils/2.37/0002-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
index 99dee96..99dee96 100644
--- a/packages/binutils/2.37/0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
+++ b/packages/binutils/2.37/0002-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch
diff --git a/packages/binutils/2.37/0004-Dont-link-to-libfl-as-its-unnecessary.patch b/packages/binutils/2.37/0003-Dont-link-to-libfl-as-its-unnecessary.patch
index c3e525a..c3e525a 100644
--- a/packages/binutils/2.37/0004-Dont-link-to-libfl-as-its-unnecessary.patch
+++ b/packages/binutils/2.37/0003-Dont-link-to-libfl-as-its-unnecessary.patch
diff --git a/packages/binutils/2.37/0005-Darwin-gold-binary-cc-include-string-not-cstring.patch b/packages/binutils/2.37/0004-Darwin-gold-binary-cc-include-string-not-cstring.patch
index fbc4041..fbc4041 100644
--- a/packages/binutils/2.37/0005-Darwin-gold-binary-cc-include-string-not-cstring.patch
+++ b/packages/binutils/2.37/0004-Darwin-gold-binary-cc-include-string-not-cstring.patch
diff --git a/packages/binutils/2.37/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch b/packages/binutils/2.37/0005-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch
index 6728c6e..6728c6e 100644
--- a/packages/binutils/2.37/0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch
+++ b/packages/binutils/2.37/0005-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch
diff --git a/packages/binutils/2.37/0007-sysroot.patch b/packages/binutils/2.37/0006-sysroot.patch
index 3b3c0ec..3b3c0ec 100644
--- a/packages/binutils/2.37/0007-sysroot.patch
+++ b/packages/binutils/2.37/0006-sysroot.patch
diff --git a/packages/binutils/2.37/0008-poison-system-directories.patch b/packages/binutils/2.37/0007-poison-system-directories.patch
index 0fd1adc..0fd1adc 100644
--- a/packages/binutils/2.37/0008-poison-system-directories.patch
+++ b/packages/binutils/2.37/0007-poison-system-directories.patch
diff --git a/packages/binutils/2.37/0009-arc-Fix-potential-invalid-pointer-access-when-fixing.patch b/packages/binutils/2.37/0008-arc-Fix-potential-invalid-pointer-access-when-fixing.patch
index ade3180..ade3180 100644
--- a/packages/binutils/2.37/0009-arc-Fix-potential-invalid-pointer-access-when-fixing.patch
+++ b/packages/binutils/2.37/0008-arc-Fix-potential-invalid-pointer-access-when-fixing.patch
diff --git a/packages/binutils/2.37/0010-change-uint-to-unsigned.patch b/packages/binutils/2.37/0009-change-uint-to-unsigned.patch
index d44b12e..016016e 100644
--- a/packages/binutils/2.37/0010-change-uint-to-unsigned.patch
+++ b/packages/binutils/2.37/0009-change-uint-to-unsigned.patch
@@ -19,12 +19,10 @@ So it's easy to see how such bugs can creep in.
"recursion" to unsigned.
(RUST_NO_RECURSION_LIMIT): Similarly in cast.
---
- libiberty/ChangeLog | 6 ++++++
- libiberty/rust-demangle.c | 4 ++--
+ libiberty/ChangeLog | 6 ++++++
+ libiberty/rust-demangle.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
-diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
-index 8e39fd28eba8..3f749455f05d 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,9 @@
@@ -37,11 +35,9 @@ index 8e39fd28eba8..3f749455f05d 100644
2021-07-15 Nick Clifton <nickc@redhat.com>
PR 99935
-diff --git a/libiberty/rust-demangle.c b/libiberty/rust-demangle.c
-index df09b7b8fddb..ac1eb8eb02c6 100644
--- a/libiberty/rust-demangle.c
+++ b/libiberty/rust-demangle.c
-@@ -75,10 +75,10 @@ struct rust_demangler
+@@ -75,10 +75,10 @@
int version;
/* Recursion depth. */
diff --git a/packages/binutils/2.37/0011-bfd-close-the-file-descriptor-if-there-is-no-archive-fd.patch b/packages/binutils/2.37/0010-bfd-close-the-file-descriptor-if-there-is-no-archive-fd.patch
index 192d4e0..1fe3d9c 100644
--- a/packages/binutils/2.37/0011-bfd-close-the-file-descriptor-if-there-is-no-archive-fd.patch
+++ b/packages/binutils/2.37/0010-bfd-close-the-file-descriptor-if-there-is-no-archive-fd.patch
@@ -33,16 +33,16 @@ ld/
(cherry picked from commit 5a98fb7513b559e20dfebdbaa2a471afda3b4742)
(cherry picked from commit 7dc37e1e1209c80e0bab784df6b6bac335e836f2)
---
- bfd/plugin.c | 8 +++++++
- ld/testsuite/ld-plugin/lto.exp | 34 ++++++++++++++++++++++++++++++
- ld/testsuite/ld-plugin/pr28138-1.c | 6 ++++++
- ld/testsuite/ld-plugin/pr28138-2.c | 6 ++++++
- ld/testsuite/ld-plugin/pr28138-3.c | 6 ++++++
- ld/testsuite/ld-plugin/pr28138-4.c | 6 ++++++
- ld/testsuite/ld-plugin/pr28138-5.c | 6 ++++++
- ld/testsuite/ld-plugin/pr28138-6.c | 6 ++++++
- ld/testsuite/ld-plugin/pr28138-7.c | 6 ++++++
- ld/testsuite/ld-plugin/pr28138.c | 20 ++++++++++++++++++
+ bfd/plugin.c | 8 ++++++++
+ ld/testsuite/ld-plugin/lto.exp | 34 ++++++++++++++++++++++++++++++++++
+ ld/testsuite/ld-plugin/pr28138-1.c | 6 ++++++
+ ld/testsuite/ld-plugin/pr28138-2.c | 6 ++++++
+ ld/testsuite/ld-plugin/pr28138-3.c | 6 ++++++
+ ld/testsuite/ld-plugin/pr28138-4.c | 6 ++++++
+ ld/testsuite/ld-plugin/pr28138-5.c | 6 ++++++
+ ld/testsuite/ld-plugin/pr28138-6.c | 6 ++++++
+ ld/testsuite/ld-plugin/pr28138-7.c | 6 ++++++
+ ld/testsuite/ld-plugin/pr28138.c | 20 ++++++++++++++++++++
10 files changed, 104 insertions(+)
create mode 100644 ld/testsuite/ld-plugin/pr28138-1.c
create mode 100644 ld/testsuite/ld-plugin/pr28138-2.c
@@ -53,11 +53,9 @@ ld/
create mode 100644 ld/testsuite/ld-plugin/pr28138-7.c
create mode 100644 ld/testsuite/ld-plugin/pr28138.c
-diff --git a/bfd/plugin.c b/bfd/plugin.c
-index 6cfa2b66470..3bab8febe88 100644
--- a/bfd/plugin.c
+++ b/bfd/plugin.c
-@@ -291,6 +291,14 @@ bfd_plugin_close_file_descriptor (bfd *abfd, int fd)
+@@ -291,6 +291,14 @@
&& !bfd_is_thin_archive (abfd->my_archive))
abfd = abfd->my_archive;
@@ -72,11 +70,9 @@ index 6cfa2b66470..3bab8febe88 100644
abfd->archive_plugin_fd_open_count--;
/* Dup the archive plugin file descriptor for later use, which
will be closed by _bfd_archive_close_and_cleanup. */
-diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
-index def69e43ab3..999d911ce6a 100644
--- a/ld/testsuite/ld-plugin/lto.exp
+++ b/ld/testsuite/ld-plugin/lto.exp
-@@ -687,6 +687,40 @@ if { [is_elf_format] && [check_lto_shared_available] } {
+@@ -687,6 +687,40 @@
}
}
@@ -117,9 +113,6 @@ index def69e43ab3..999d911ce6a 100644
set testname "Build liblto-11.a"
remote_file host delete "tmpdir/liblto-11.a"
set catch_output [run_host_cmd "$ar" "rc $plug_opt tmpdir/liblto-11.a tmpdir/lto-11a.o tmpdir/lto-11b.o tmpdir/lto-11c.o"]
-diff --git a/ld/testsuite/ld-plugin/pr28138-1.c b/ld/testsuite/ld-plugin/pr28138-1.c
-new file mode 100644
-index 00000000000..51d119e1642
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-1.c
@@ -0,0 +1,6 @@
@@ -129,9 +122,6 @@ index 00000000000..51d119e1642
+{
+ return 1 + a0();
+}
-diff --git a/ld/testsuite/ld-plugin/pr28138-2.c b/ld/testsuite/ld-plugin/pr28138-2.c
-new file mode 100644
-index 00000000000..1120cd797e9
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-2.c
@@ -0,0 +1,6 @@
@@ -141,9 +131,6 @@ index 00000000000..1120cd797e9
+{
+ return 1 + a1();
+}
-diff --git a/ld/testsuite/ld-plugin/pr28138-3.c b/ld/testsuite/ld-plugin/pr28138-3.c
-new file mode 100644
-index 00000000000..ec464947ee6
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-3.c
@@ -0,0 +1,6 @@
@@ -153,9 +140,6 @@ index 00000000000..ec464947ee6
+{
+ return 1 + a2();
+}
-diff --git a/ld/testsuite/ld-plugin/pr28138-4.c b/ld/testsuite/ld-plugin/pr28138-4.c
-new file mode 100644
-index 00000000000..475701b2c5c
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-4.c
@@ -0,0 +1,6 @@
@@ -165,9 +149,6 @@ index 00000000000..475701b2c5c
+{
+ return 1 + a3();
+}
-diff --git a/ld/testsuite/ld-plugin/pr28138-5.c b/ld/testsuite/ld-plugin/pr28138-5.c
-new file mode 100644
-index 00000000000..e24f86c363e
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-5.c
@@ -0,0 +1,6 @@
@@ -177,9 +158,6 @@ index 00000000000..e24f86c363e
+{
+ return 1 + a4();
+}
-diff --git a/ld/testsuite/ld-plugin/pr28138-6.c b/ld/testsuite/ld-plugin/pr28138-6.c
-new file mode 100644
-index 00000000000..b5b938bdb21
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-6.c
@@ -0,0 +1,6 @@
@@ -189,9 +167,6 @@ index 00000000000..b5b938bdb21
+{
+ return 1 + a5();
+}
-diff --git a/ld/testsuite/ld-plugin/pr28138-7.c b/ld/testsuite/ld-plugin/pr28138-7.c
-new file mode 100644
-index 00000000000..4ef75bf0f0c
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-7.c
@@ -0,0 +1,6 @@
@@ -201,9 +176,6 @@ index 00000000000..4ef75bf0f0c
+{
+ return 1 + a6();
+}
-diff --git a/ld/testsuite/ld-plugin/pr28138.c b/ld/testsuite/ld-plugin/pr28138.c
-new file mode 100644
-index 00000000000..68252c9f382
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138.c
@@ -0,0 +1,20 @@
@@ -227,6 +199,3 @@ index 00000000000..68252c9f382
+ }
+ return 1;
+}
---
-2.27.0
-
diff --git a/packages/binutils/2.37/0012-pr28391-strip-objcopy-preserve-dates-a-cannot-set-time.patch b/packages/binutils/2.37/0011-pr28391-strip-objcopy-preserve-dates-a-cannot-set-time.patch
index f7b5221..de54af3 100644
--- a/packages/binutils/2.37/0012-pr28391-strip-objcopy-preserve-dates-a-cannot-set-time.patch
+++ b/packages/binutils/2.37/0011-pr28391-strip-objcopy-preserve-dates-a-cannot-set-time.patch
@@ -16,15 +16,13 @@ and the whole st_atim timespec untouched leaving them uninitialized
(cherry picked from commit 0d62064867c74286360e821b75ef6799bedc4b34)
---
- binutils/ar.c | 3 +++
- binutils/objcopy.c | 1 +
+ binutils/ar.c | 3 +++
+ binutils/objcopy.c | 1 +
2 files changed, 4 insertions(+)
-diff --git a/binutils/ar.c b/binutils/ar.c
-index 5d6976c7027..8885585ef75 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
-@@ -1180,6 +1180,9 @@ extract_file (bfd *abfd)
+@@ -1180,6 +1180,9 @@
bfd_size_type size;
struct stat buf;
@@ -34,11 +32,9 @@ index 5d6976c7027..8885585ef75 100644
if (bfd_stat_arch_elt (abfd, &buf) != 0)
/* xgettext:c-format */
fatal (_("internal stat error on %s"), bfd_get_filename (abfd));
-diff --git a/binutils/objcopy.c b/binutils/objcopy.c
-index a6c2e0dcc26..fd7557fe433 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
-@@ -3600,6 +3600,7 @@ copy_archive (bfd *ibfd, bfd *obfd, const char *output_target,
+@@ -3600,6 +3600,7 @@
if (preserve_dates)
{
@@ -46,6 +42,3 @@ index a6c2e0dcc26..fd7557fe433 100644
stat_status = bfd_stat_arch_elt (this_element, &buf);
if (stat_status != 0)
---
-2.27.0
-
diff --git a/packages/binutils/2.37/0013-ld-pru-fix-resource_table-output-section-alignment.patch b/packages/binutils/2.37/0012-ld-pru-fix-resource_table-output-section-alignment.patch
index 58921f1..863253e 100644
--- a/packages/binutils/2.37/0013-ld-pru-fix-resource_table-output-section-alignment.patch
+++ b/packages/binutils/2.37/0012-ld-pru-fix-resource_table-output-section-alignment.patch
@@ -19,12 +19,10 @@ ld/ChangeLog:
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
(cherry picked from commit 5109a7bd9b87bdad530f2ebf97036e6087b4504d)
---
- ld/ChangeLog | 5 +++++
- ld/scripttempl/pru.sc | 7 +++----
+ ld/ChangeLog | 5 +++++
+ ld/scripttempl/pru.sc | 7 +++----
2 files changed, 8 insertions(+), 4 deletions(-)
-diff --git a/ld/ChangeLog b/ld/ChangeLog
-index 5048b5b6a17..ee3259a06de 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
@@ -36,11 +34,9 @@ index 5048b5b6a17..ee3259a06de 100644
2021-07-18 Nick Clifton <nickc@redhat.com>
* 2.37 release.
-diff --git a/ld/scripttempl/pru.sc b/ld/scripttempl/pru.sc
-index b2c941b7911..97d8be0a0a4 100644
--- a/ld/scripttempl/pru.sc
+++ b/ld/scripttempl/pru.sc
-@@ -151,11 +151,10 @@ SECTIONS
+@@ -151,11 +151,10 @@
${RELOCATING+ PROVIDE (_data_end = .) ; }
} ${RELOCATING+ > dmem }
@@ -55,6 +51,3 @@ index b2c941b7911..97d8be0a0a4 100644
KEEP (*(.resource_table))
} ${RELOCATING+ > dmem}
---
-2.27.0
-
diff --git a/packages/binutils/2.37/0014-pr28422-build_id-use-after-free.patch b/packages/binutils/2.37/0013-pr28422-build_id-use-after-free.patch
index 5f6c81a..97308ca 100644
--- a/packages/binutils/2.37/0014-pr28422-build_id-use-after-free.patch
+++ b/packages/binutils/2.37/0013-pr28422-build_id-use-after-free.patch
@@ -11,14 +11,12 @@ bfd in struct bfd_preserve need to be cleared in bfd_reinit.
(cherry picked from commit 6d661cdc5be46e890ed9255e749806f46a88e26c)
---
- bfd/format.c | 1 +
+ bfd/format.c | 1 +
1 file changed, 1 insertion(+)
-diff --git a/bfd/format.c b/bfd/format.c
-index 5d08d1d642c..408c984690e 100644
--- a/bfd/format.c
+++ b/bfd/format.c
-@@ -151,6 +151,7 @@ bfd_reinit (bfd *abfd, unsigned int section_id, bfd_cleanup cleanup)
+@@ -151,6 +151,7 @@
abfd->tdata.any = NULL;
abfd->arch_info = &bfd_default_arch_struct;
abfd->flags &= BFD_FLAGS_SAVED;
@@ -26,6 +24,3 @@ index 5d08d1d642c..408c984690e 100644
bfd_section_list_clear (abfd);
}
---
-2.27.0
-
diff --git a/packages/binutils/2.37/0015-pr28459-readelf-issues-bogus-warning.patch b/packages/binutils/2.37/0014-pr28459-readelf-issues-bogus-warning.patch
index a860029..0a1d6d7 100644
--- a/packages/binutils/2.37/0015-pr28459-readelf-issues-bogus-warning.patch
+++ b/packages/binutils/2.37/0014-pr28459-readelf-issues-bogus-warning.patch
@@ -20,14 +20,12 @@ more than one unit.
(cherry picked from commit e7f024765a48fba4452535a5fc006a7e858730fd)
---
- binutils/dwarf.c | 1 -
+ binutils/dwarf.c | 1 -
1 file changed, 1 deletion(-)
-diff --git a/binutils/dwarf.c b/binutils/dwarf.c
-index 1e7f4db7b7c..e73078f496f 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
-@@ -7727,7 +7727,6 @@ display_debug_ranges (struct dwarf_section *section,
+@@ -7727,7 +7727,6 @@
return 0;
}
}
@@ -35,6 +33,3 @@ index 1e7f4db7b7c..e73078f496f 100644
/* Get and check the version number. */
SAFE_BYTE_GET_AND_INC (version, start, 2, finish);
---
-2.27.0
-
diff --git a/packages/binutils/2.37/0016-pr28417-std-string-no-longer-allows-accepting-nullptr_t.patch b/packages/binutils/2.37/0015-pr28417-std-string-no-longer-allows-accepting-nullptr_t.patch
index 7fa92df..f26591e 100644
--- a/packages/binutils/2.37/0016-pr28417-std-string-no-longer-allows-accepting-nullptr_t.patch
+++ b/packages/binutils/2.37/0015-pr28417-std-string-no-longer-allows-accepting-nullptr_t.patch
@@ -10,15 +10,13 @@ Subject: [PATCH] PR28417, std::string no longer allows accepting nullptr_t
(cherry picked from commit 068a039b8bd7c7386bb0d88f0ae245b0fe4132e9)
---
- gold/incremental.cc | 2 +-
- gold/options.h | 2 +-
+ gold/incremental.cc | 2 +-
+ gold/options.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
-diff --git a/gold/incremental.cc b/gold/incremental.cc
-index 52941985e6f..327a1527a29 100644
--- a/gold/incremental.cc
+++ b/gold/incremental.cc
-@@ -2286,7 +2286,7 @@ Sized_relobj_incr<size, big_endian>::do_section_name(unsigned int shndx) const
+@@ -2280,7 +2280,7 @@
const Output_sections& out_sections(this->output_sections());
const Output_section* os = out_sections[shndx];
if (os == NULL)
@@ -27,11 +25,9 @@ index 52941985e6f..327a1527a29 100644
return os->name();
}
-diff --git a/gold/options.h b/gold/options.h
-index 757ebf18fec..47299a37834 100644
--- a/gold/options.h
+++ b/gold/options.h
-@@ -611,7 +611,7 @@ class Search_directory
+@@ -611,7 +611,7 @@
// We need a default constructor because we put this in a
// std::vector.
Search_directory()
@@ -40,6 +36,3 @@ index 757ebf18fec..47299a37834 100644
{ }
// This is the usual constructor.
---
-2.27.0
-
diff --git a/packages/binutils/2.37/0017-pr28540-segmentation-fault-on-NULL-byte_get.patch b/packages/binutils/2.37/0016-pr28540-segmentation-fault-on-NULL-byte_get.patch
index f7f26a7..e0be9b7 100644
--- a/packages/binutils/2.37/0017-pr28540-segmentation-fault-on-NULL-byte_get.patch
+++ b/packages/binutils/2.37/0016-pr28540-segmentation-fault-on-NULL-byte_get.patch
@@ -9,14 +9,12 @@ Subject: [PATCH] PR28540, segmentation fault on NULL byte_get
(cherry picked from commit f2f105f518413ea3e4c212f89585f9a8a5dddcdd)
---
- binutils/objdump.c | 2 +-
+ binutils/objdump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-diff --git a/binutils/objdump.c b/binutils/objdump.c
-index a7b8303b992..50317b3d48f 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
-@@ -4869,7 +4869,7 @@ dump_bfd (bfd *abfd, bool is_mainfile)
+@@ -4869,7 +4869,7 @@
The test on is_mainfile is there because the chain of separate debug
info files is a global variable shared by all invocations of dump_bfd. */
@@ -25,6 +23,3 @@ index a7b8303b992..50317b3d48f 100644
{
load_separate_debug_files (abfd, bfd_get_filename (abfd));
---
-2.27.0
-
diff --git a/packages/binutils/2.37/0018-gold-place-note-gnu-property-section-before-other-note-sections.patch b/packages/binutils/2.37/0017-gold-place-note-gnu-property-section-before-other-note-sections.patch
index 9b53a90..0063e0d 100644
--- a/packages/binutils/2.37/0018-gold-place-note-gnu-property-section-before-other-note-sections.patch
+++ b/packages/binutils/2.37/0017-gold-place-note-gnu-property-section-before-other-note-sections.patch
@@ -14,15 +14,13 @@ avoid being placed between other note sections with different alignments.
(cherry picked from commit f85dcfc3af9cf7c2859241253f1d37b1133abea2)
---
- gold/layout.cc | 3 ++-
- gold/layout.h | 9 +++++++--
+ gold/layout.cc | 3 ++-
+ gold/layout.h | 9 +++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
-diff --git a/gold/layout.cc b/gold/layout.cc
-index a27cb071c75..38e9bceec7e 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
-@@ -3245,7 +3245,8 @@ Layout::create_note(const char* name, int note_type,
+@@ -3245,7 +3245,8 @@
if (allocate)
{
flags = elfcpp::SHF_ALLOC;
@@ -32,11 +30,9 @@ index a27cb071c75..38e9bceec7e 100644
}
Output_section* os = this->choose_output_section(NULL, section_name,
elfcpp::SHT_NOTE,
-diff --git a/gold/layout.h b/gold/layout.h
-index 0b378003679..05c31714e47 100644
--- a/gold/layout.h
+++ b/gold/layout.h
-@@ -399,8 +399,13 @@ enum Output_section_order
+@@ -399,8 +399,13 @@
// linker can pick it up quickly.
ORDER_INTERP,
@@ -52,6 +48,3 @@ index 0b378003679..05c31714e47 100644
ORDER_RO_NOTE,
// Put read-only sections used by the dynamic linker early in the
---
-2.27.0
-
diff --git a/packages/binutils/2.37/0019-waddress-warning-in-ldelf.c.patch b/packages/binutils/2.37/0018-waddress-warning-in-ldelf.c.patch
index 4091806..685af62 100644
--- a/packages/binutils/2.37/0019-waddress-warning-in-ldelf.c.patch
+++ b/packages/binutils/2.37/0018-waddress-warning-in-ldelf.c.patch
@@ -16,14 +16,12 @@ In file included from ldelf.c:37:
(cherry picked from commit ced10cb78d01652f9e1bb1d1e465327dfe1debaa)
---
- ld/ldelf.c | 1 -
+ ld/ldelf.c | 1 -
1 file changed, 1 deletion(-)
-diff --git a/ld/ldelf.c b/ld/ldelf.c
-index 21e655bb55c..0c39eb6024f 100644
--- a/ld/ldelf.c
+++ b/ld/ldelf.c
-@@ -1046,7 +1046,6 @@ ldelf_after_open (int use_libpath, int native, int is_linux, int is_freebsd,
+@@ -1046,7 +1046,6 @@
if (abfd->xvec->flavour == bfd_target_elf_flavour
&& !bfd_input_just_syms (abfd)
&& elf_tdata (abfd) != NULL
@@ -31,6 +29,3 @@ index 21e655bb55c..0c39eb6024f 100644
/* FIXME: Maybe check for other non-supportable types as well ? */
&& (elf_tdata (abfd)->elf_header->e_type == ET_EXEC
|| (elf_tdata (abfd)->elf_header->e_type == ET_DYN
---
-2.27.0
-