From 3b3d49c0c7364614e149ceefe1ea12a978150343 Mon Sep 17 00:00:00 2001 From: ryoon Date: Sat, 30 Jan 2016 22:20:51 +0000 Subject: Update to 2.26 Changelog: Changes in 2.26: * Add option to objcopy to insert new symbols into a file: --add-symbol =[
:][,] * Add support for the ARC EM/HS, and ARC600/700 architectures. * Extend objcopy --compress-debug-sections option to support --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] for ELF targets. * Add --update-section option to objcopy. * Add --output-separator option to strings. --- cross/arm-none-eabi-binutils/Makefile | 5 ++- cross/arm-none-eabi-binutils/PLIST | 3 +- cross/arm-none-eabi-binutils/distinfo | 14 +++--- .../patches/patch-bfd_elf32-arm.c | 22 ++++++++++ .../patches/patch-gas_configure | 50 +++------------------- .../patches/patch-ld_configure | 13 ++++++ 6 files changed, 55 insertions(+), 52 deletions(-) create mode 100644 cross/arm-none-eabi-binutils/patches/patch-bfd_elf32-arm.c create mode 100644 cross/arm-none-eabi-binutils/patches/patch-ld_configure (limited to 'cross/arm-none-eabi-binutils') diff --git a/cross/arm-none-eabi-binutils/Makefile b/cross/arm-none-eabi-binutils/Makefile index cdd765eb045..50b5ce0aa76 100644 --- a/cross/arm-none-eabi-binutils/Makefile +++ b/cross/arm-none-eabi-binutils/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.1 2015/10/11 01:14:27 ryoon Exp $ +# $NetBSD: Makefile,v 1.2 2016/01/30 22:20:51 ryoon Exp $ -DISTNAME= binutils-2.25.1 +DISTNAME= binutils-2.26 PKGNAME= cross-arm-none-eabi-${DISTNAME} CATEGORIES= cross MASTER_SITES= ${MASTER_SITE_GNU:=binutils/} @@ -11,6 +11,7 @@ HOMEPAGE= # empty COMMENT= Cross binutils for bare metal ARM EABI LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3 +USE_LIBTOOL= yes USE_TOOLS+= gmake makeinfo GNU_CONFIGURE= yes diff --git a/cross/arm-none-eabi-binutils/PLIST b/cross/arm-none-eabi-binutils/PLIST index 89f3b99814e..507b5b89235 100644 --- a/cross/arm-none-eabi-binutils/PLIST +++ b/cross/arm-none-eabi-binutils/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1 2015/10/11 01:14:27 ryoon Exp $ +@comment $NetBSD: PLIST,v 1.2 2016/01/30 22:20:51 ryoon Exp $ cross-arm-none-eabi/arm-none-eabi/bin/ar cross-arm-none-eabi/arm-none-eabi/bin/as cross-arm-none-eabi/arm-none-eabi/bin/ld @@ -7,6 +7,7 @@ cross-arm-none-eabi/arm-none-eabi/bin/nm cross-arm-none-eabi/arm-none-eabi/bin/objcopy cross-arm-none-eabi/arm-none-eabi/bin/objdump cross-arm-none-eabi/arm-none-eabi/bin/ranlib +cross-arm-none-eabi/arm-none-eabi/bin/readelf cross-arm-none-eabi/arm-none-eabi/bin/strip cross-arm-none-eabi/arm-none-eabi/lib/ldscripts/armelf.x cross-arm-none-eabi/arm-none-eabi/lib/ldscripts/armelf.xbn diff --git a/cross/arm-none-eabi-binutils/distinfo b/cross/arm-none-eabi-binutils/distinfo index cdb1234a7d0..4a4f6f432e8 100644 --- a/cross/arm-none-eabi-binutils/distinfo +++ b/cross/arm-none-eabi-binutils/distinfo @@ -1,7 +1,9 @@ -$NetBSD: distinfo,v 1.2 2015/11/03 00:47:42 agc Exp $ +$NetBSD: distinfo,v 1.3 2016/01/30 22:20:51 ryoon Exp $ -SHA1 (binutils-2.25.1.tar.bz2) = 1d597ae063e3947a5f61e23ceda8aebf78405fcd -RMD160 (binutils-2.25.1.tar.bz2) = 5756c6163a11964347e32d1b2805e97e74ff5e3f -SHA512 (binutils-2.25.1.tar.bz2) = 0b36dda0e6d32cd25613c0e64b56b28312515c54d6a159efd3db9a86717f114ab0a0a1f69d08975084d55713ebaeab64e4085c9b3d1c3fa86712869f80eb954d -Size (binutils-2.25.1.tar.bz2) = 24163561 bytes -SHA1 (patch-gas_configure) = bf11398045adc4f8226b5a273caa8bc81d01a0f9 +SHA1 (binutils-2.26.tar.bz2) = a637508cffeb2323b14bc8dd65378819768ad4ff +RMD160 (binutils-2.26.tar.bz2) = ce0400ffcc1200280854fefb29f97b63507bad14 +SHA512 (binutils-2.26.tar.bz2) = e77e1b8dbbcbaf9ac2fae95c4403615808af3be03b2e1d32448cd3a7d32c43273f8bcace3f2de84ec120a982879295673029da306e2885dbf5f990584932cfc7 +Size (binutils-2.26.tar.bz2) = 25543552 bytes +SHA1 (patch-bfd_elf32-arm.c) = 8d90dd77cb4925db71def94d2d32cbe3e1cfb69e +SHA1 (patch-gas_configure) = 6f92ff39e4733c06fdeb88ccc8c456781ff54570 +SHA1 (patch-ld_configure) = 2c6fdb4dc7af4ee58100910029be70fd9e5c90e0 diff --git a/cross/arm-none-eabi-binutils/patches/patch-bfd_elf32-arm.c b/cross/arm-none-eabi-binutils/patches/patch-bfd_elf32-arm.c new file mode 100644 index 00000000000..8fb83faf4a2 --- /dev/null +++ b/cross/arm-none-eabi-binutils/patches/patch-bfd_elf32-arm.c @@ -0,0 +1,22 @@ +$NetBSD: patch-bfd_elf32-arm.c,v 1.1 2016/01/30 22:20:51 ryoon Exp $ + +Resolve popcount(3) conflict on NetBSD + +--- bfd/elf32-arm.c.orig 2016-01-25 08:51:06.000000000 +0000 ++++ bfd/elf32-arm.c +@@ -3133,6 +3133,7 @@ ctz (unsigned int mask) + #endif + } + ++#if !defined(__NetBSD__) + static inline int + popcount (unsigned int mask) + { +@@ -3150,6 +3151,7 @@ popcount (unsigned int mask) + return sum; + #endif + } ++#endif + + /* Create an entry in an ARM ELF linker hash table. */ + diff --git a/cross/arm-none-eabi-binutils/patches/patch-gas_configure b/cross/arm-none-eabi-binutils/patches/patch-gas_configure index b45e5649ef7..acc2c842ce5 100644 --- a/cross/arm-none-eabi-binutils/patches/patch-gas_configure +++ b/cross/arm-none-eabi-binutils/patches/patch-gas_configure @@ -1,51 +1,15 @@ -$NetBSD: patch-gas_configure,v 1.1 2015/10/11 01:14:27 ryoon Exp $ +$NetBSD: patch-gas_configure,v 1.2 2016/01/30 22:20:51 ryoon Exp $ https://sourceware.org/bugzilla/show_bug.cgi?id=18994 ---- gas/configure.orig 2015-07-21 13:42:55.000000000 +0000 +--- gas/configure.orig 2016-01-25 08:54:08.000000000 +0000 +++ gas/configure -@@ -12331,7 +12331,7 @@ $as_echo "$with_arch" >&6; } - # Decide features one by one. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5 - $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; } -- if test "x${enable_dx_regs}" == xyes; then -+ if test "x${enable_dx_regs}" = xyes; then +@@ -12505,7 +12505,7 @@ _ACEOF - $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h + done -@@ -12345,7 +12345,7 @@ $as_echo "$enable_dx_regs" >&6; } +-if test x$ac_default_compressed_debug_sections == xyes ; then ++if test x$ac_default_compressed_debug_sections = xyes ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5 - $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; } -- if test "x${enable_perf_ext}" == xno; then -+ if test "x${enable_perf_ext}" = xno; then - - $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h - -@@ -12359,7 +12359,7 @@ $as_echo "$enable_perf_ext" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5 - $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; } -- if test "x${enable_perf_ext2}" == xno; then -+ if test "x${enable_perf_ext2}" = xno; then - - $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h - -@@ -12373,7 +12373,7 @@ $as_echo "$enable_perf_ext2" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5 - $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; } -- if test "x${enable_string_ext}" == xno; then -+ if test "x${enable_string_ext}" = xno; then - - $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h - -@@ -12387,7 +12387,7 @@ $as_echo "$enable_string_ext" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5 - $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; } -- if test "x${enable_audio_ext}" == xno; then -+ if test "x${enable_audio_ext}" = xno; then - - $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h + $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h diff --git a/cross/arm-none-eabi-binutils/patches/patch-ld_configure b/cross/arm-none-eabi-binutils/patches/patch-ld_configure new file mode 100644 index 00000000000..a668544db85 --- /dev/null +++ b/cross/arm-none-eabi-binutils/patches/patch-ld_configure @@ -0,0 +1,13 @@ +$NetBSD: patch-ld_configure,v 1.1 2016/01/30 22:20:51 ryoon Exp $ + +--- ld/configure.orig 2016-01-25 08:54:11.000000000 +0000 ++++ ld/configure +@@ -17134,7 +17134,7 @@ do + fi + done + +-if test x$ac_default_compressed_debug_sections == xyes ; then ++if test x$ac_default_compressed_debug_sections = xyes ; then + + $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h + -- cgit v1.2.3