Skip to content

Commit

Permalink
Update binutils to 2.44
Browse files Browse the repository at this point in the history
Remove gold
  • Loading branch information
starg2 committed Feb 18, 2025
1 parent 2077d0b commit d970eaf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 54 deletions.
25 changes: 0 additions & 25 deletions patches/binutils/0001-enable-gold-on.mingw32.patch

This file was deleted.

26 changes: 0 additions & 26 deletions patches/binutils/0110-binutils-mingw-gnu-print.patch
Original file line number Diff line number Diff line change
Expand Up @@ -51,32 +51,6 @@ index 14a768f8889..b1f056f115a 100644

#else /* __GNUC__ < 2 || defined(VMS) */

diff --git a/gold/configure b/gold/configure
index b9f062b68eb..fde982191c5 100755
--- a/gold/configure
+++ b/gold/configure
@@ -10204,7 +10204,7 @@ else
/* end confdefs.h. */

template<typename T> extern void foo(const char*, ...)
- __attribute__ ((__format__ (__printf__, 1, 2)));
+ __attribute__ ((__format__ (gnu_printf, 1, 2)));
template<typename T> void foo(const char* format, ...) {}
void bar() { foo<int>("%s\n", "foo"); }

diff --git a/gold/configure.ac b/gold/configure.ac
index 1716a779416..cae29866f38 100644
--- a/gold/configure.ac
+++ b/gold/configure.ac
@@ -679,7 +679,7 @@ AC_CACHE_CHECK([whether we can use attributes with template functions],
[gold_cv_template_attribute],
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([
template<typename T> extern void foo(const char*, ...)
- __attribute__ ((__format__ (__printf__, 1, 2)));
+ __attribute__ ((__format__ (gnu_printf, 1, 2)));
template<typename T> void foo(const char* format, ...) {}
void bar() { foo<int>("%s\n", "foo"); }
])], [gold_cv_template_attribute=yes], [gold_cv_template_attribute=no])])
diff --git a/include/ansidecl.h b/include/ansidecl.h
index 0515228f325..7c2b9f18306 100644
--- a/include/ansidecl.h
Expand Down
4 changes: 1 addition & 3 deletions scripts/binutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

# **************************************************************************

PKG_VERSION=2.43
PKG_VERSION=2.44
PKG_NAME=binutils-${PKG_VERSION}
[[ $USE_MULTILIB == yes ]] && {
PKG_NAME=$BUILD_ARCHITECTURE-$PKG_NAME-multi
Expand All @@ -53,7 +53,6 @@ PKG_PRIORITY=prereq
#

PKG_PATCHES=(
binutils/0001-enable-gold-on.mingw32.patch
binutils/0002-check-for-unusual-file-harder.patch
binutils/0008-fix-libiberty-makefile.mingw.patch
binutils/0009-fix-libiberty-configure.mingw.patch
Expand Down Expand Up @@ -90,7 +89,6 @@ PKG_CONFIGURE_FLAGS=(
#
--enable-lto
--enable-plugins
--enable-gold
--enable-install-libiberty
#
--with-libiconv-prefix=$PREREQ_DIR/$BUILD_ARCHITECTURE-libiconv-$LINK_TYPE_SUFFIX
Expand Down

0 comments on commit d970eaf

Please sign in to comment.