Skip to contentSkip to conversation

Upgrade binutils to 2.23.1

PATCH In review Khem Raj 4 participants 13 messages Nov 28, 2012 – Dec 4, 2012

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

cover Upgrade binutils to 2.23.1

This patchset updates binutils to 2.23 branch I have tested systemd-image meta-toolchain and core-image-sato target with it they all built fine I did not (yet) delete the 2.22 recipes since there must be some time given for folks to try 2.23 in couple of weeks 2.22 recipes will move out of OE-Core. Preferably deleted if need be moved into toolchain-layer

The following changes since commit bdce08215396e5ab99ada5fa0f62c3b002a44582:

openssh: CVE-2011-4327 (2012-11-28 07:38:26 +0000)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib kraj/binutils-2.23
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/binutils-2.23

Khem Raj (3):
binutils-2.23.1: Add recipes
oprofile: Define PACKAGE and PACKAGE_VERSION
tcmode-default.inc: Use binutils 2.23.1

 meta/conf/distro/include/tcmode-default.inc        |    2 +-
 meta/recipes-devtools/binutils/binutils-2.23.1.inc |   46 +
 .../binutils-2.23.1/backport/0001-bfd.patch        |   58 +
 ...3-Assemble-all-sources-files-in-each-test.patch |  187 +
 .../binutils-2.23.1/backport/0005-bfd.patch        |  103 +
 .../backport/0010-bfd-ChangeLog.patch              |   95 +
 ...012-Fix-TLS-LD-to-LE-optimization-for-x32.patch |   57 +
 .../backport/0013-gas-ChangeLog.patch              |   43 +
 .../0014-Fix-opcode-for-64-bit-jecxz.patch         |  112 +
 ...-data.exp-Add-XFAIL-for-arm-targets-refer.patch |   40 +
 .../binutils-2.23.1/backport/0018-bfd.patch        |   78 +
 .../binutils-2.23.1/backport/0024-bfd.patch        |   49 +
 .../backport/0026-ld-testsuite.patch               |   65 +
 .../binutils/binutils-2.23.1/binutils-armv5e.patch |   25 +
 .../binutils/binutils-2.23.1/binutils-poison.patch |  259 +
 .../binutils-uclibc-100-uclibc-conf.patch          |   40 +
 ...binutils-uclibc-300-001_ld_makefile_patch.patch |   55 +
 ...binutils-uclibc-300-006_better_file_error.patch |   45 +
 ...ils-uclibc-300-012_check_ldrunpath_length.patch |   49 +
 .../binutils-uclibc-gas-needs-libm.patch           |   38 +
 .../binutils-x86_64_i386_biarch.patch              |   29 +
 .../binutils-2.23.1/libiberty_path_fix.patch       |   22 +
 .../binutils-2.23.1/libtool-2.4-update.patch       |19407 ++++++++++++++++++++
 .../binutils-2.23.1/libtool-rpath-fix.patch        |   39 +
 .../mips64-default-ld-emulation.patch              |   49 +
 .../binutils/binutils-2.23.1/relocatable_sdk.patch |   49 +
 .../binutils/binutils-cross-canadian_2.23.1.bb     |    3 +
 .../binutils/binutils-cross_2.23.1.bb              |    3 +
 .../binutils/binutils-crosssdk_2.23.1.bb           |   14 +
 meta/recipes-devtools/binutils/binutils_2.23.1.bb  |   35 +
 meta/recipes-kernel/oprofile/oprofile.inc          |    4 +-
 31 files changed, 21097 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1.inc
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0001-bfd.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0003-Assemble-all-sources-files-in-each-test.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0005-bfd.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0010-bfd-ChangeLog.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0012-Fix-TLS-LD-to-LE-optimization-for-x32.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0013-gas-ChangeLog.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0014-Fix-opcode-for-64-bit-jecxz.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0017-ld-elf-comm-data.exp-Add-XFAIL-for-arm-targets-refer.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0018-bfd.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0024-bfd.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0026-ld-testsuite.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-armv5e.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-poison.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-100-uclibc-conf.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-300-001_ld_makefile_patch.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-300-006_better_file_error.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-300-012_check_ldrunpath_length.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-gas-needs-libm.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-x86_64_i386_biarch.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/libiberty_path_fix.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/libtool-2.4-update.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/libtool-rpath-fix.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/mips64-default-ld-emulation.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/relocatable_sdk.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-cross-canadian_2.23.1.bb
 create mode 100644 meta/recipes-devtools/binutils/binutils-cross_2.23.1.bb
 create mode 100644 meta/recipes-devtools/binutils/binutils-crosssdk_2.23.1.bb
 create mode 100644 meta/recipes-devtools/binutils/binutils_2.23.1.bb
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/3 binutils-2.23.1: Add recipes

backport non regressing patches from 2.23 branch after 2.23.1 release.

---
 meta/recipes-devtools/binutils/binutils-2.23.1.inc |   46 +
 .../binutils-2.23.1/backport/0001-bfd.patch        |   58 +
 ...3-Assemble-all-sources-files-in-each-test.patch |  187 +
 .../binutils-2.23.1/backport/0005-bfd.patch        |  103 +
 .../backport/0010-bfd-ChangeLog.patch              |   95 +
 ...012-Fix-TLS-LD-to-LE-optimization-for-x32.patch |   57 +
 .../backport/0013-gas-ChangeLog.patch              |   43 +
 .../0014-Fix-opcode-for-64-bit-jecxz.patch         |  112 +
 ...-data.exp-Add-XFAIL-for-arm-targets-refer.patch |   40 +
 .../binutils-2.23.1/backport/0018-bfd.patch        |   78 +
 .../binutils-2.23.1/backport/0024-bfd.patch        |   49 +
 .../backport/0026-ld-testsuite.patch               |   65 +
 .../binutils/binutils-2.23.1/binutils-armv5e.patch |   25 +
 .../binutils/binutils-2.23.1/binutils-poison.patch |  259 +
 .../binutils-uclibc-100-uclibc-conf.patch          |   40 +
 ...binutils-uclibc-300-001_ld_makefile_patch.patch |   55 +
 ...binutils-uclibc-300-006_better_file_error.patch |   45 +
 ...ils-uclibc-300-012_check_ldrunpath_length.patch |   49 +
 .../binutils-uclibc-gas-needs-libm.patch           |   38 +
 .../binutils-x86_64_i386_biarch.patch              |   29 +
 .../binutils-2.23.1/libiberty_path_fix.patch       |   22 +
 .../binutils-2.23.1/libtool-2.4-update.patch       |19407 ++++++++++++++++++++
 .../binutils-2.23.1/libtool-rpath-fix.patch        |   39 +
 .../mips64-default-ld-emulation.patch              |   49 +
 .../binutils/binutils-2.23.1/relocatable_sdk.patch |   49 +
 .../binutils/binutils-cross-canadian_2.23.1.bb     |    3 +
 .../binutils/binutils-cross_2.23.1.bb              |    3 +
 .../binutils/binutils-crosssdk_2.23.1.bb           |   14 +
 meta/recipes-devtools/binutils/binutils_2.23.1.bb  |   35 +
 29 files changed, 21094 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1.inc
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0001-bfd.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0003-Assemble-all-sources-files-in-each-test.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0005-bfd.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0010-bfd-ChangeLog.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0012-Fix-TLS-LD-to-LE-optimization-for-x32.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0013-gas-ChangeLog.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0014-Fix-opcode-for-64-bit-jecxz.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0017-ld-elf-comm-data.exp-Add-XFAIL-for-arm-targets-refer.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0018-bfd.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0024-bfd.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/backport/0026-ld-testsuite.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-armv5e.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-poison.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-100-uclibc-conf.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-300-001_ld_makefile_patch.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-300-006_better_file_error.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-300-012_check_ldrunpath_length.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-gas-needs-libm.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/binutils-x86_64_i386_biarch.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/libiberty_path_fix.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/libtool-2.4-update.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/libtool-rpath-fix.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/mips64-default-ld-emulation.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1/relocatable_sdk.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils-cross-canadian_2.23.1.bb
 create mode 100644 meta/recipes-devtools/binutils/binutils-cross_2.23.1.bb
 create mode 100644 meta/recipes-devtools/binutils/binutils-crosssdk_2.23.1.bb
 create mode 100644 meta/recipes-devtools/binutils/binutils_2.23.1.bb
meta/recipes-devtools/binutils/binutils-2.23.1.inc new file +46 -0
new file mode 100644
index 0000000..3396981
@@ -0,0 +1,46 @@
+LIC_FILES_CHKSUM="\
+    file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\
+    file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\
+    file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674\
+    file://COPYING3;md5=d32239bcb673463ab874e80d47fae504\
+    file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6\
+    file://gas/COPYING;md5=d32239bcb673463ab874e80d47fae504\
+    file://include/COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\
+    file://include/COPYING3;md5=d32239bcb673463ab874e80d47fae504\
+    file://libiberty/COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7\
+    file://bfd/COPYING;md5=d32239bcb673463ab874e80d47fae504\
+    "
+
+SRC_URI = "\
+     ${GNU_MIRROR}/binutils/binutils-${PV}.tar.bz2 \
+     file://binutils-uclibc-100-uclibc-conf.patch \
+     file://binutils-uclibc-300-001_ld_makefile_patch.patch \
+     file://binutils-uclibc-300-006_better_file_error.patch \
+     file://binutils-uclibc-300-012_check_ldrunpath_length.patch \
+     file://binutils-uclibc-gas-needs-libm.patch \
+     file://binutils-x86_64_i386_biarch.patch \
+     file://libtool-2.4-update.patch \
+     file://libiberty_path_fix.patch \
+     file://binutils-poison.patch \
+     file://libtool-rpath-fix.patch \
+     file://binutils-armv5e.patch \
+     file://mips64-default-ld-emulation.patch \
+     ${BACKPORT} \
+     "
+
+BACKPORT = "\
+     file://backport/0001-bfd.patch \
+     file://backport/0003-Assemble-all-sources-files-in-each-test.patch \
+     file://backport/0005-bfd.patch \
+     file://backport/0010-bfd-ChangeLog.patch \
+     file://backport/0012-Fix-TLS-LD-to-LE-optimization-for-x32.patch \
+     file://backport/0013-gas-ChangeLog.patch \
+     file://backport/0014-Fix-opcode-for-64-bit-jecxz.patch \
+     file://backport/0017-ld-elf-comm-data.exp-Add-XFAIL-for-arm-targets-refer.patch \
+     file://backport/0018-bfd.patch \
+     file://backport/0024-bfd.patch \
+     file://backport/0026-ld-testsuite.patch \
+"
+SRC_URI[md5sum] = "33adb18c3048d057ac58d07a3f1adb38"
+SRC_URI[sha256sum] = "2ab2e5b03e086d12c6295f831adad46b3e1410a3a234933a2e8fac66cb2e7a19"
+
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0001-bfd.patch new file +58 -0

58 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/backport/0003-Assemble-all-sources-files-in-each-test.patch new file +187 -0

187 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/backport/0005-bfd.patch new file +103 -0

103 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/backport/0010-bfd-ChangeLog.patch new file +95 -0

95 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/backport/0012-Fix-TLS-LD-to-LE-optimization-for-x32.patch new file +57 -0

57 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/backport/0013-gas-ChangeLog.patch new file +43 -0

43 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/backport/0014-Fix-opcode-for-64-bit-jecxz.patch new file +112 -0

112 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/backport/0017-ld-elf-comm-data.exp-Add-XFAIL-for-arm-targets-refer.patch new file +40 -0
new file mode 100644
index 0000000..909d27a
@@ -0,0 +1,40 @@
+From b15bb9c9dc6875a2fe08feba6f31cce6a9468cf7 Mon Sep 17 00:00:00 2001
+From: Roland McGrath <[email protected]>
+Date: Wed, 21 Nov 2012 19:32:32 +0000
+Subject: [PATCH 17/27] * ld-elf/comm-data.exp: Add XFAIL for arm*-*-*
+ targets, referring to PR ld/13802.
+
+---
+ ld/testsuite/ChangeLog            |    5 +++++
+ ld/testsuite/ld-elf/comm-data.exp |    2 ++
+ 2 files changed, 7 insertions(+)
+
+diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
+index e02432f..aada077 100644
+--- a/ld/testsuite/ChangeLog
++++ b/ld/testsuite/ChangeLog
+@@ -1,3 +1,8 @@
++2012-11-21  Roland McGrath  <[email protected]>
++
++	* ld-elf/comm-data.exp: Add XFAIL for arm*-*-* targets, referring
++	to PR ld/13802.
++
+ 2012-11-14  H.J. Lu  <[email protected]>
+ 
+ 	* ld-elf/shared.exp (build_cxx_tests): Move out the commented out
+diff --git a/ld/testsuite/ld-elf/comm-data.exp b/ld/testsuite/ld-elf/comm-data.exp
+index 1c75f55..71b856d 100644
+--- a/ld/testsuite/ld-elf/comm-data.exp
++++ b/ld/testsuite/ld-elf/comm-data.exp
+@@ -59,6 +59,8 @@ if [is_elf64 "tmpdir/libcomm-data.so"] {
+     append AFLAGS " --defsym ELF64=1"
+ }
+ 
++setup_xfail "arm*-*-*" "ld/13802"
++
+ # Verify that a common symbol has been converted to an undefined
+ # reference to the global symbol of the same name defined above
+ # and that the debug reference has been dropped.
+-- 
+1.7.9.5
+
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0018-bfd.patch new file +78 -0

78 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/backport/0024-bfd.patch new file +49 -0

49 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/backport/0026-ld-testsuite.patch new file +65 -0

65 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/binutils-armv5e.patch new file +25 -0
new file mode 100644
index 0000000..97ad6df
@@ -0,0 +1,25 @@
+Add the armv5e architecture to binutils
+
+Binutils has a comment that indicates it is supposed to match gcc for all of
+the support "-march=" settings, but it was lacking the armv5e setting.  This
+was a simple way to add it, as thumb instructions shouldn't be generated by
+the compiler anyway.
+
+Upstream-Status: Denied
+Upstream maintainer indicated that we should not be using armv5e, even though
+it is a legal archicture defined by our gcc.
+
+Signed-off-by: Mark Hatle <[email protected]>
+
+Index: binutils-2.22.90/gas/config/tc-arm.c
+===================================================================
+--- binutils-2.22.90.orig/gas/config/tc-arm.c	2012-07-24 09:38:32.000000000 -0700
++++ binutils-2.22.90/gas/config/tc-arm.c	2012-08-07 23:41:59.822564075 -0700
+@@ -23162,6 +23162,7 @@
+   ARM_ARCH_OPT ("armv4t",	ARM_ARCH_V4T,	 FPU_ARCH_FPA),
+   ARM_ARCH_OPT ("armv4txm",	ARM_ARCH_V4TxM,	 FPU_ARCH_FPA),
+   ARM_ARCH_OPT ("armv5",	ARM_ARCH_V5,	 FPU_ARCH_VFP),
++  ARM_ARCH_OPT ("armv5e",	ARM_ARCH_V5TE,	 FPU_ARCH_VFP),
+   ARM_ARCH_OPT ("armv5t",	ARM_ARCH_V5T,	 FPU_ARCH_VFP),
+   ARM_ARCH_OPT ("armv5txm",	ARM_ARCH_V5TxM,	 FPU_ARCH_VFP),
+   ARM_ARCH_OPT ("armv5te",	ARM_ARCH_V5TE,	 FPU_ARCH_VFP),
meta/recipes-devtools/binutils/binutils-2.23.1/binutils-poison.patch new file +259 -0

259 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-100-uclibc-conf.patch new file +40 -0
new file mode 100644
index 0000000..b5a25c2
@@ -0,0 +1,40 @@
+Upstream-Status: Pending
+
+Index: binutils-2.22/configure
+===================================================================
+--- binutils-2.22.orig/configure
++++ binutils-2.22/configure
+@@ -3130,7 +3130,7 @@ case "${target}" in
+     ;;
+   s390-*-* | s390x-*-*)
+     ;;
+-  sh-*-* | sh[34]*-*-*)
++  sh*-*-* | sh[34]*-*-*)
+     ;;
+   sh64-*-* | sh5*-*-*)
+     ;;
+@@ -3570,7 +3570,7 @@ case "${target}" in
+   mips*-*-*)
+     noconfigdirs="$noconfigdirs gprof"
+     ;;
+-  sh-*-* | sh64-*-*)
++  sh*-*-* | sh64-*-*)
+     case "${target}" in
+       sh*-*-elf)
+          ;;
+Index: binutils-2.22/gprof/configure
+===================================================================
+--- binutils-2.22.orig/gprof/configure
++++ binutils-2.22/gprof/configure
+@@ -6103,6 +6103,11 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
+   lt_cv_deplibs_check_method=pass_all
+   ;;
+ 
++linux-uclibc*)
++  lt_cv_deplibs_check_method=pass_all
++  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
++  ;;
++
+ netbsd*)
+   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-300-001_ld_makefile_patch.patch new file +55 -0

55 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-300-006_better_file_error.patch new file +45 -0

45 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-300-012_check_ldrunpath_length.patch new file +49 -0

49 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-gas-needs-libm.patch new file +38 -0
new file mode 100644
index 0000000..3869faf
@@ -0,0 +1,38 @@
+Source: Khem Raj <[email protected]>
+Disposition: submit upstream.
+Upstream-Status: Pending
+
+Description:
+
+We do not need to have the libtool patch anymore for binutils after
+libtool has been updated upstream it include support for it. However
+for building gas natively on uclibc systems we have to link it with
+-lm so that it picks up missing symbols.
+
+/local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_from_double':
+floatformat.c:(.text+0x1ec): undefined reference to `frexp'
+floatformat.c:(.text+0x2f8): undefined reference to `ldexp'
+/local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_to_double':
+floatformat.c:(.text+0x38a): undefined reference to `ldexp'
+floatformat.c:(.text+0x3d2): undefined reference to `ldexp'
+floatformat.c:(.text+0x43e): undefined reference to `ldexp'                     floatformat.c:(.text+0x4e2): undefined reference to `ldexp'
+collect2: ld returned 1 exit status
+make[4]: *** [as-new] Error 1
+
+Index: binutils-2.22/gas/configure.tgt
+===================================================================
+--- binutils-2.22.orig/gas/configure.tgt
++++ binutils-2.22/gas/configure.tgt
+@@ -428,6 +428,12 @@ case ${generic_target} in
+   *-*-netware)				fmt=elf em=netware ;;
+ esac
+ 
++case ${generic_target} in
++  arm-*-*uclibc*)
++    need_libm=yes
++    ;;
++esac
++
+ case ${cpu_type} in
+   alpha | arm | i386 | ia64 | microblaze | mips | ns32k | pdp11 | ppc | sparc | z80 | z8k)
+     bfd_gas=yes
meta/recipes-devtools/binutils/binutils-2.23.1/binutils-x86_64_i386_biarch.patch new file +29 -0
new file mode 100644
index 0000000..c09578a
@@ -0,0 +1,29 @@
+#!/bin/sh -e
+## 127_x86_64_i386_biarch.dpatch
+##
+## DP: Description: Add (/usr)/lib32 to the search paths on x86_64.
+## DP: Author: Aurelien Jarno <aurel32.debian.org>
+## DP: Upstream status: Debian specific
+#
+# Hacked to apply with quilt
+# Adapted to binutils 2.18.50.0.7
+Upstream-Status: Inappropriate [embedded specific]
+
+Index: binutils-2.22/ld/emulparams/elf_i386.sh
+===================================================================
+--- binutils-2.22.orig/ld/emulparams/elf_i386.sh
++++ binutils-2.22/ld/emulparams/elf_i386.sh
+@@ -14,3 +14,13 @@ GENERATE_PIE_SCRIPT=yes
+ NO_SMALL_DATA=yes
+ SEPARATE_GOTPLT=12
+ IREL_IN_PLT=
++
++# Linux modify the default library search path to first include
++# a 32-bit specific directory.
++case "$target" in
++  x86_64*-linux* | i[3-7]86*-linux* | x86_64*-kfreebsd*-gnu | i[3-7]86*-kfreebsd*-gnu)
++    case "$EMULATION_NAME" in
++      *i386*) LIBPATH_SUFFIX=32 ;;
++    esac
++    ;;
++esac
meta/recipes-devtools/binutils/binutils-2.23.1/libiberty_path_fix.patch new file +22 -0
new file mode 100644
index 0000000..6e732fb
@@ -0,0 +1,22 @@
+Upstream-Status: Inappropriate [embedded specific]
+
+don't let the distro compiler point to the wrong installation location
+
+Thanks to RP for helping find the source code causing the issue.
+
+2010/08/13
+Nitin A Kamble <[email protected]>
+Index: binutils-2.22/libiberty/Makefile.in
+===================================================================
+--- binutils-2.22.orig/libiberty/Makefile.in
++++ binutils-2.22/libiberty/Makefile.in
+@@ -350,7 +350,8 @@ install-strip: install
+ # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
+ # default multilib, so we have to take CFLAGS into account as well,
+ # since it will be passed the multilib flags.
+-MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
++#MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
++MULTIOSDIR = ""
+ install_to_libdir: all
+ 	${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR)
+ 	$(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n
meta/recipes-devtools/binutils/binutils-2.23.1/libtool-2.4-update.patch new file +19407 -0

1,505 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/libtool-rpath-fix.patch new file +39 -0
new file mode 100644
index 0000000..4fcffa4

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils-2.23.1/mips64-default-ld-emulation.patch new file +49 -0

49 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-2.23.1/relocatable_sdk.patch new file +49 -0

49 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils-cross-canadian_2.23.1.bb new file +3 -0
new file mode 100644
index 0000000..5dbaa03

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils-cross_2.23.1.bb new file +3 -0
new file mode 100644
index 0000000..fbd1f7d

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils-crosssdk_2.23.1.bb new file +14 -0
new file mode 100644
index 0000000..c936549

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils_2.23.1.bb new file +35 -0
new file mode 100644
index 0000000..b8250d8

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.7.9.5

Part of the diff is not shown here. View the raw message.

author
#2 lore raw

PATCH 2/3 oprofile: Define PACKAGE and PACKAGE_VERSION

oprofile uses bfd.h from binutils which expects that the package which is using it is also compiled using autotools and therefore tries to include config.h to get above defines. We specify them on commandline instead.

---
 meta/recipes-kernel/oprofile/oprofile.inc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-kernel/oprofile/oprofile.inc +2 -2
index ac8ce10..3c1c3cd 100644
@@ -19,7 +19,7 @@ FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}"
 FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la"
 FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a"
 
-INC_PR = "r1"
+INC_PR = "r2"
 
 SRC_URI = "file://opstart.patch \
            file://oprofile-no-query-modules.patch \
@@ -29,7 +29,7 @@ SRC_URI = "file://opstart.patch \
 inherit autotools
 
 EXTRA_OECONF = "--with-kernel-support --without-x"
-
+CFLAGS += '-DPACKAGE="${BPN}" -DPACKAGE_VERSION=${PV}'
 do_configure () {
 	cp ${WORKDIR}/acinclude.m4 ${S}/
 	autotools_do_configure
Signature · 1 line
1.7.9.5
#3 lore raw

Re: [PATCH 2/3] oprofile: Define PACKAGE and PACKAGE_VERSION

Quoted 6 lines · Khem Raj

oprofile uses bfd.h from binutils which expects that the package which is using it is also compiled using autotools and therefore tries to include config.h to get above defines. We specify them on commandline instead.

Khem,

This patch seems to be causing issues when I build it with stage/master_under_test.

I am seeing a configure failure on the Autobuilder.
http://autobuilder.yoctoproject.org:8010/builders/nightly-x86-64/builds/735/steps/shell_28/logs/stdio

A number of failures like the above can be seen..

Thanks
Sau!

Quoted 28 lines
---
  meta/recipes-kernel/oprofile/oprofile.inc |    4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-kernel/oprofile/oprofile.inc +2 -2
index ac8ce10..3c1c3cd 100644
@@ -19,7 +19,7 @@ FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}"
  FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la"
  FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a"
 
-INC_PR = "r1"
+INC_PR = "r2"
 
  SRC_URI = "file://opstart.patch \
             file://oprofile-no-query-modules.patch \
@@ -29,7 +29,7 @@ SRC_URI = "file://opstart.patch \
  inherit autotools
 
  EXTRA_OECONF = "--with-kernel-support --without-x"
-
+CFLAGS += '-DPACKAGE="${BPN}" -DPACKAGE_VERSION=${PV}'
  do_configure () {
  	cp ${WORKDIR}/acinclude.m4 ${S}/
  	autotools_do_configure
author
#4 lore raw

PATCH 3/3 tcmode-default.inc: Use binutils 2.23.1

In reply to Khem Raj
---
 meta/conf/distro/include/tcmode-default.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/distro/include/tcmode-default.inc +1 -1
index 9193691..1d6cd8b 100644
@@ -19,7 +19,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
 
 GCCVERSION ?= "4.7%"
 SDKGCCVERSION ?= "${GCCVERSION}"
-BINUVERSION ?= "2.22"
+BINUVERSION ?= "2.23.1"
 EGLIBCVERSION ?= "2.16"
 UCLIBCVERSION ?= "0.9.33"
 LINUXLIBCVERSION ?= "3.4.3"
Signature · 1 line
1.7.9.5
#5 lore raw

Re: [PATCH 1/3] binutils-2.23.1: Add recipes

In reply to Khem Raj
Quoted 1 line · Khem Raj

+EXTRA_OECONF_virtclass-native = "--enable-target=all ..."

again: this option does not exist. You want '--enable-targets=all'.

Enrico

author
#6 lore raw

Re: [PATCH 1/3] binutils-2.23.1: Add recipes

Quoted 8 lines · Enrico Scholz
Quoted 1 line · Khem Raj

+EXTRA_OECONF_virtclass-native = "--enable-target=all ..."

again: this option does not exist. You want '--enable-targets=all'.

Thanks for reviewing. indeed I forgot to merge in changes
from 60fe4e80ca5845a0d03f918b80d6e980c13378b9
and bb67ddeb2eed3e25c626a279ef53a7e8c7bfe6f2 into the patch set. I have now pushed a new commit
on top of the pull branch to take these changes into consideration.

Quoted 7 lines

Enrico

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Acked-by on the v1 series
#7 lore raw
In reply to Khem Raj

W dniu 28.11.2012 16:29, Khem Raj pisze:

Quoted 5 lines

This patchset updates binutils to 2.23 branch I have tested systemd-image meta-toolchain and core-image-sato target with it they all built fine I did not (yet) delete the 2.22 recipes since there must be some time given for folks to try 2.23 in couple of weeks 2.22 recipes will move out of OE-Core. Preferably deleted if need be moved into toolchain-layer

I did builds for AArch64 with 2.23 and they were working fine. Will do 2.23.1 build as well.

author
#8 lore raw
Quoted 10 lines · Marcin Juszkiewicz

W dniu 28.11.2012 16:29, Khem Raj pisze:

Quoted 5 lines

This patchset updates binutils to 2.23 branch I have tested systemd-image meta-toolchain and core-image-sato target with it they all built fine I did not (yet) delete the 2.22 recipes since there must be some time given for folks to try 2.23 in couple of weeks 2.22 recipes will move out of OE-Core. Preferably deleted if need be moved into toolchain-layer

I did builds for AArch64 with 2.23 and they were working fine. Will do 2.23.1 build as well.

thanks. let me know of any fallouts.

Quoted 9 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#9 lore raw

W dniu 28.11.2012 18:43, Khem Raj pisze:

Quoted 6 lines

On Wed, Nov 28, 2012 at 7:39 AM, Marcin Juszkiewicz

I did builds for AArch64 with 2.23 and they were working fine. Will do 2.23.1 build as well.

thanks. let me know of any fallouts.

Due to some updates I had to move to trunk again.

author
#10 lore raw

can you point out ?
is it branch issue or some patch that I dropped

Quoted 11 lines · Marcin Juszkiewicz

W dniu 28.11.2012 18:43, Khem Raj pisze:

Quoted 3 lines

On Wed, Nov 28, 2012 at 7:39 AM, Marcin Juszkiewicz

I did builds for AArch64 with 2.23 and they were working fine. Will

do

Quoted 3 lines
    2.23.1 build as well.

thanks. let me know of any fallouts.

Due to some updates I had to move to trunk again.

#11 lore raw

W dniu 04.12.2012 20:48, Khem Raj pisze:

Quoted 2 lines

can you point out ?
is it branch issue or some patch that I dropped

There were some updates in binutils trunk from ARM people and we need those to get gdb trunk running as well. Maybe in January I will have more time to take a look at it and merge them in 2.23.1 recipe.

So nothing related to your updates.

author
#12 lore raw
In reply to Khem Raj

Hello

There is an annoying change in binutils/bfd which now wants autoconf generated config.h so basically any package depending on binutils-dev and using bfd.h now needs to adapt to this change. I have fixed oprofile for this and pushed refreshed patches to pull branch. You can fix rest of packages modeling the oprofile fix
or let me know of the failing package I will help out.

Thanks
-Khem

Quoted 117 lines · Khem Raj

This patchset updates binutils to 2.23 branch I have tested systemd-image meta-toolchain and core-image-sato target with it they all built fine I did not (yet) delete the 2.22 recipes since there must be some time given for folks to try 2.23 in couple of weeks 2.22 recipes will move out of OE-Core. Preferably deleted if need be moved into toolchain-layer

The following changes since commit
bdce08215396e5ab99ada5fa0f62c3b002a44582:

openssh: CVE-2011-4327 (2012-11-28 07:38:26 +0000)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib kraj/binutils-2.23

http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/binutils-2.23

Khem Raj (3):
binutils-2.23.1: Add recipes
oprofile: Define PACKAGE and PACKAGE_VERSION
tcmode-default.inc: Use binutils 2.23.1

 meta/conf/distro/include/tcmode-default.inc        |    2 +-
 meta/recipes-devtools/binutils/binutils-2.23.1.inc |   46 +
 .../binutils-2.23.1/backport/0001-bfd.patch        |   58 +
 ...3-Assemble-all-sources-files-in-each-test.patch |  187 +
 .../binutils-2.23.1/backport/0005-bfd.patch        |  103 +
 .../backport/0010-bfd-ChangeLog.patch              |   95 +
 ...012-Fix-TLS-LD-to-LE-optimization-for-x32.patch |   57 +
 .../backport/0013-gas-ChangeLog.patch              |   43 +
 .../0014-Fix-opcode-for-64-bit-jecxz.patch         |  112 +
 ...-data.exp-Add-XFAIL-for-arm-targets-refer.patch |   40 +
 .../binutils-2.23.1/backport/0018-bfd.patch        |   78 +
 .../binutils-2.23.1/backport/0024-bfd.patch        |   49 +
 .../backport/0026-ld-testsuite.patch               |   65 +
 .../binutils/binutils-2.23.1/binutils-armv5e.patch |   25 +
 .../binutils/binutils-2.23.1/binutils-poison.patch |  259 +
 .../binutils-uclibc-100-uclibc-conf.patch          |   40 +
 ...binutils-uclibc-300-001_ld_makefile_patch.patch |   55 +
 ...binutils-uclibc-300-006_better_file_error.patch |   45 +
 ...ils-uclibc-300-012_check_ldrunpath_length.patch |   49 +
 .../binutils-uclibc-gas-needs-libm.patch           |   38 +
 .../binutils-x86_64_i386_biarch.patch              |   29 +
 .../binutils-2.23.1/libiberty_path_fix.patch       |   22 +
 .../binutils-2.23.1/libtool-2.4-update.patch       |19407
++++++++++++++++++++
 .../binutils-2.23.1/libtool-rpath-fix.patch        |   39 +
 .../mips64-default-ld-emulation.patch              |   49 +
 .../binutils/binutils-2.23.1/relocatable_sdk.patch |   49 +
 .../binutils/binutils-cross-canadian_2.23.1.bb     |    3 +
 .../binutils/binutils-cross_2.23.1.bb              |    3 +
 .../binutils/binutils-crosssdk_2.23.1.bb           |   14 +
 meta/recipes-devtools/binutils/binutils_2.23.1.bb  |   35 +
 meta/recipes-kernel/oprofile/oprofile.inc          |    4 +-
 31 files changed, 21097 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.23.1.inc
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0001-bfd.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0003-Assemble-all-sources-files-in-each-test.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0005-bfd.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0010-bfd-ChangeLog.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0012-Fix-TLS-LD-to-LE-optimization-for-x32.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0013-gas-ChangeLog.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0014-Fix-opcode-for-64-bit-jecxz.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0017-ld-elf-comm-data.exp-Add-XFAIL-for-arm-targets-refer.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0018-bfd.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0024-bfd.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/backport/0026-ld-testsuite.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/binutils-armv5e.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/binutils-poison.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-100-uclibc-conf.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-300-001_ld_makefile_patch.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-300-006_better_file_error.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-300-012_check_ldrunpath_length.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/binutils-uclibc-gas-needs-libm.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/binutils-x86_64_i386_biarch.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/libiberty_path_fix.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/libtool-2.4-update.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/libtool-rpath-fix.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/mips64-default-ld-emulation.patch
 create mode 100644
meta/recipes-devtools/binutils/binutils-2.23.1/relocatable_sdk.patch
 create mode 100644 meta/recipes-devtools/binutils/
binutils-cross-canadian_2.23.1.bb
 create mode 100644 meta/recipes-devtools/binutils/
binutils-cross_2.23.1.bb
 create mode 100644 meta/recipes-devtools/binutils/
binutils-crosssdk_2.23.1.bb
 create mode 100644 meta/recipes-devtools/binutils/binutils_2.23.1.bb

--
1.7.9.5