[arch-commits] Commit in binutils/repos (4 files)
Date: Tuesday, April 10, 2018 @ 19:39:57 Author: bpiotrowski Revision: 321500 archrelease: copy trunk to testing-x86_64 Added: binutils/repos/testing-x86_64/ binutils/repos/testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch (from rev 321499, binutils/trunk/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch) binutils/repos/testing-x86_64/0001-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch (from rev 321499, binutils/trunk/0001-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch) binutils/repos/testing-x86_64/PKGBUILD (from rev 321499, binutils/trunk/PKGBUILD) -+ 0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch | 29 ++ 0001-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch | 145 ++ PKGBUILD| 86 + 3 files changed, 260 insertions(+) Copied: binutils/repos/testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch (from rev 321499, binutils/trunk/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch) === --- testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch (rev 0) +++ testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch 2018-04-10 19:39:57 UTC (rev 321500) @@ -0,0 +1,29 @@ +From eb77f6a4621795367a39cdd30957903af9dbb815 Mon Sep 17 00:00:00 2001 +From: Alan Modra +Date: Sat, 27 Jan 2018 08:19:33 +1030 +Subject: [PATCH] PR22741, objcopy segfault on fuzzed COFF object + + PR 22741 + * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in + range before converting to a symbol table pointer. +--- + bfd/coffgen.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/bfd/coffgen.c b/bfd/coffgen.c +index b2410873d0..4f90eaddd9 100644 +--- a/bfd/coffgen.c b/bfd/coffgen.c +@@ -1555,7 +1555,8 @@ coff_pointerize_aux (bfd *abfd, + } + /* A negative tagndx is meaningless, but the SCO 3.2v4 cc can + generate one, so we must be careful to ignore it. */ +- if (auxent->u.auxent.x_sym.x_tagndx.l > 0) ++ if ((unsigned long) auxent->u.auxent.x_sym.x_tagndx.l ++ < obj_raw_syment_count (abfd)) + { + auxent->u.auxent.x_sym.x_tagndx.p = + table_base + auxent->u.auxent.x_sym.x_tagndx.l; +-- +2.16.2 + Copied: binutils/repos/testing-x86_64/0001-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch (from rev 321499, binutils/trunk/0001-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch) === --- testing-x86_64/0001-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch (rev 0) +++ testing-x86_64/0001-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch 2018-04-10 19:39:57 UTC (rev 321500) @@ -0,0 +1,145 @@ +From 3b56a1358768563d9cf320559ebdedfb30f122dd Mon Sep 17 00:00:00 2001 +From: Alan Modra +Date: Mon, 12 Feb 2018 13:06:07 +1030 +Subject: [PATCH] PR22829, objcopy/strip removes PT_GNU_RELRO from lld binaries + +lld lays out the relro segment differently to GNU ld, not bothering to +include the first few bytes of .got.plt and padding out to a page at +the end of the segment. This patch teaches binutils to recognize the +different (and somewhat inferior) layout as valid. + +bfd/ + PR 22829 + * elf.c (assign_file_positions_for_non_load_sections): Rewrite + PT_GNU_RELRO setup. +ld/ + * testsuite/ld-x86-64/pr14207.d: Adjust relro p_filesz. + +(cherry picked from commit f2731e0c374e5323ce4cdae2bcc7b7fe22da1a6f) +--- + bfd/elf.c| 78 ++-- + ld/testsuite/ld-x86-64/pr14207.d | 2 +- + 2 files changed, 52 insertions(+), 28 deletions(-) + +diff --git a/bfd/elf.c b/bfd/elf.c +index bbaab26918..f5a230cd77 100644 +--- a/bfd/elf.c b/bfd/elf.c +@@ -5826,50 +5826,74 @@ assign_file_positions_for_non_load_sections (bfd *abfd, + { + if (p->p_type == PT_GNU_RELRO) + { +-const Elf_Internal_Phdr *lp; +-struct elf_segment_map *lm; ++bfd_vma start, end; + + if (link_info != NULL) + { + /* During linking the range of the RELRO segment is passed +- in link_info. */ ++ in link_info. Note that there may be padding between ++ relro_start and the first RELRO section. */ ++start = link_info->relro_start; ++end = link_info->relro_end; ++ } ++else if (m->count != 0) ++ { ++if (!m->p_size_valid) ++ abort (); ++start = m->sections[0]->vma; ++end = start + m->p_size; ++ } ++else ++ { ++start = 0; ++end = 0; ++
[arch-commits] Commit in binutils/repos (4 files)
Date: Thursday, August 17, 2017 @ 10:44:58 Author: bpiotrowski Revision: 302329 archrelease: copy trunk to staging-i686, staging-x86_64 Added: binutils/repos/staging-i686/ binutils/repos/staging-i686/PKGBUILD (from rev 302328, binutils/trunk/PKGBUILD) binutils/repos/staging-x86_64/ binutils/repos/staging-x86_64/PKGBUILD (from rev 302328, binutils/trunk/PKGBUILD) -+ staging-i686/PKGBUILD | 75 ++ staging-x86_64/PKGBUILD | 75 ++ 2 files changed, 150 insertions(+) Copied: binutils/repos/staging-i686/PKGBUILD (from rev 302328, binutils/trunk/PKGBUILD) === --- staging-i686/PKGBUILD (rev 0) +++ staging-i686/PKGBUILD 2017-08-17 10:44:58 UTC (rev 302329) @@ -0,0 +1,75 @@ +# $Id$ +# Maintainer: Allan McRae + +# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc + +pkgname=binutils +pkgver=2.29.0 +pkgrel=1 +_commit=dd9a28c0966d13924fbd1096a724ae334954d830 +pkgdesc='A set of programs to assemble and manipulate binary and object files' +arch=(i686 x86_64) +url='http://www.gnu.org/software/binutils/' +license=(GPL) +groups=('base-devel') +depends=('glibc>=2.26' zlib) +makedepends=(git) +checkdepends=(dejagnu bc) +conflicts=(binutils-multilib) +replaces=(binutils-multilib) +options=(staticlibs !distcc !ccache) +source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit}) +md5sums=('SKIP') + +prepare() { + mkdir -p binutils-build + + cd binutils-gdb + + # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure +} + +build() { + cd binutils-build + + "$srcdir/binutils-gdb/configure" \ +--prefix=/usr \ +--with-lib-path=/usr/lib:/usr/local/lib \ +--with-bugurl=https://bugs.archlinux.org/ \ +--enable-threads \ +--enable-shared \ +--enable-ld=default \ +--enable-gold \ +--enable-plugins \ +--enable-relro \ +--enable-deterministic-archives \ +--with-pic \ +--disable-werror \ +--disable-gdb \ +--with-system-zlib + + make configure-host + make tooldir=/usr +} + +check() { + cd binutils-build + + # unset LDFLAGS as testsuite makes assumptions about which ones are active + # ignore failures in gold testsuite... + make -k LDFLAGS="" check || true +} + +package() { + cd binutils-build + make prefix="$pkgdir/usr" tooldir="$pkgdir/usr" install + + # Remove unwanted files + rm -f "$pkgdir"/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* + + # No shared linking to these files outside binutils + rm -f "$pkgdir"/usr/lib/lib{bfd,opcodes}.so + echo "INPUT( /usr/lib/libbfd.a -liberty -lz -ldl )" > "$pkgdir/usr/lib/libbfd.so" + echo "INPUT( /usr/lib/libopcodes.a -lbfd )" > "$pkgdir/usr/lib/libopcodes.so" +} Copied: binutils/repos/staging-x86_64/PKGBUILD (from rev 302328, binutils/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2017-08-17 10:44:58 UTC (rev 302329) @@ -0,0 +1,75 @@ +# $Id$ +# Maintainer: Allan McRae + +# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc + +pkgname=binutils +pkgver=2.29.0 +pkgrel=1 +_commit=dd9a28c0966d13924fbd1096a724ae334954d830 +pkgdesc='A set of programs to assemble and manipulate binary and object files' +arch=(i686 x86_64) +url='http://www.gnu.org/software/binutils/' +license=(GPL) +groups=('base-devel') +depends=('glibc>=2.26' zlib) +makedepends=(git) +checkdepends=(dejagnu bc) +conflicts=(binutils-multilib) +replaces=(binutils-multilib) +options=(staticlibs !distcc !ccache) +source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit}) +md5sums=('SKIP') + +prepare() { + mkdir -p binutils-build + + cd binutils-gdb + + # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure +} + +build() { + cd binutils-build + + "$srcdir/binutils-gdb/configure" \ +--prefix=/usr \ +--with-lib-path=/usr/lib:/usr/local/lib \ +--with-bugurl=https://bugs.archlinux.org/ \ +--enable-threads \ +--enable-shared \ +--enable-ld=default \ +--enable-gold \ +--enable-plugins \ +--enable-relro \ +--enable-deterministic-archives \ +--with-pic \ +--disable-werror \ +--disable-gdb \ +--with-system-zlib + + make configure-host + make tooldir=/usr +} + +check() { + cd binutils-build + + # unset LDFLAGS as testsuite makes assumptions about which ones are active + # ignore failures in gold testsuite... + make -k LDFLAGS="" check || true +} + +package() { + cd binutils-build + make prefix="$pkgdir/usr" tooldir="$pkgdir/usr" install + + # Remove unwanted fi
[arch-commits] Commit in binutils/repos (4 files)
Date: Monday, July 10, 2017 @ 09:45:28 Author: bpiotrowski Revision: 300016 archrelease: copy trunk to testing-i686, testing-x86_64 Added: binutils/repos/testing-i686/ binutils/repos/testing-i686/PKGBUILD (from rev 300015, binutils/trunk/PKGBUILD) binutils/repos/testing-x86_64/ binutils/repos/testing-x86_64/PKGBUILD (from rev 300015, binutils/trunk/PKGBUILD) -+ testing-i686/PKGBUILD | 76 ++ testing-x86_64/PKGBUILD | 76 ++ 2 files changed, 152 insertions(+) Copied: binutils/repos/testing-i686/PKGBUILD (from rev 300015, binutils/trunk/PKGBUILD) === --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2017-07-10 09:45:28 UTC (rev 300016) @@ -0,0 +1,76 @@ +# $Id$ +# Maintainer: Allan McRae + +# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc + +pkgname=binutils +pkgver=2.28.0 +pkgrel=4 +_commit=09e514a92b6bb7c910051a7fafc9fded8a687848 +pkgdesc="A set of programs to assemble and manipulate binary and object files" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/binutils/"; +license=('GPL') +groups=('base-devel') +depends=('glibc>=2.25' 'zlib') +makedepends=('git') +checkdepends=('dejagnu' 'bc') +conflicts=('binutils-multilib') +replaces=('binutils-multilib') +options=('staticlibs' '!distcc' '!ccache') +source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit}) +md5sums=('SKIP') + +prepare() { + cd binutils-gdb + + # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure + + mkdir ${srcdir}/binutils-build +} + +build() { + cd binutils-build + + ../binutils-gdb/configure \ +--prefix=/usr \ +--with-lib-path=/usr/lib:/usr/local/lib \ +--with-bugurl=https://bugs.archlinux.org/ \ +--enable-threads \ +--enable-shared \ +--enable-ld=default \ +--enable-gold \ +--enable-plugins \ +--enable-relro \ +--enable-deterministic-archives \ +--with-pic \ +--disable-werror \ +--disable-gdb + + # check the host environment and makes sure all the necessary tools are available + make configure-host + + make tooldir=/usr +} + +check() { + cd binutils-build + + # unset LDFLAGS as testsuite makes assumptions about which ones are active + # ignore failures in gold testsuite... + make -k LDFLAGS="" check || true +} + +package() { + cd binutils-build + make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install + + # Remove unwanted files + rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* + + # No shared linking to these files outside binutils + rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so + echo "INPUT ( /usr/lib/libbfd.a -liberty -lz -ldl )" > "$pkgdir"/usr/lib/libbfd.so + echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" > "$pkgdir"/usr/lib/libopcodes.so +} Copied: binutils/repos/testing-x86_64/PKGBUILD (from rev 300015, binutils/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2017-07-10 09:45:28 UTC (rev 300016) @@ -0,0 +1,76 @@ +# $Id$ +# Maintainer: Allan McRae + +# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc + +pkgname=binutils +pkgver=2.28.0 +pkgrel=4 +_commit=09e514a92b6bb7c910051a7fafc9fded8a687848 +pkgdesc="A set of programs to assemble and manipulate binary and object files" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/binutils/"; +license=('GPL') +groups=('base-devel') +depends=('glibc>=2.25' 'zlib') +makedepends=('git') +checkdepends=('dejagnu' 'bc') +conflicts=('binutils-multilib') +replaces=('binutils-multilib') +options=('staticlibs' '!distcc' '!ccache') +source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit}) +md5sums=('SKIP') + +prepare() { + cd binutils-gdb + + # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure + + mkdir ${srcdir}/binutils-build +} + +build() { + cd binutils-build + + ../binutils-gdb/configure \ +--prefix=/usr \ +--with-lib-path=/usr/lib:/usr/local/lib \ +--with-bugurl=https://bugs.archlinux.org/ \ +--enable-threads \ +--enable-shared \ +--enable-ld=default \ +--enable-gold \ +--enable-plugins \ +--enable-relro \ +--enable-deterministic-archives \ +--with-pic \ +--disable-werror \ +--disable-gdb + + # check the host environment and makes sure all the necessary tools are available + make configure-host + + make tooldir=/usr +} + +check() { + cd binutils-build + + # unset LDFLAGS as testsuite makes assumptions about which ones are active + # ignore failures in gold tests
[arch-commits] Commit in binutils/repos (4 files)
Date: Monday, May 15, 2017 @ 16:24:41 Author: bpiotrowski Revision: 296133 archrelease: copy trunk to testing-i686, testing-x86_64 Added: binutils/repos/testing-i686/PKGBUILD (from rev 296132, binutils/trunk/PKGBUILD) binutils/repos/testing-x86_64/PKGBUILD (from rev 296132, binutils/trunk/PKGBUILD) Deleted: binutils/repos/testing-i686/PKGBUILD binutils/repos/testing-x86_64/PKGBUILD -+ /PKGBUILD | 150 ++ testing-i686/PKGBUILD | 75 --- testing-x86_64/PKGBUILD | 75 --- 3 files changed, 150 insertions(+), 150 deletions(-) Deleted: testing-i686/PKGBUILD === --- testing-i686/PKGBUILD 2017-05-15 15:57:24 UTC (rev 296132) +++ testing-i686/PKGBUILD 2017-05-15 16:24:41 UTC (rev 296133) @@ -1,75 +0,0 @@ -# $Id$ -# Maintainer: Allan McRae - -# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc - -pkgname=binutils -pkgver=2.28.0 -pkgrel=3 -_commit=09e514a92b6bb7c910051a7fafc9fded8a687848 -pkgdesc="A set of programs to assemble and manipulate binary and object files" -arch=('i686' 'x86_64') -url="http://www.gnu.org/software/binutils/"; -license=('GPL') -groups=('base-devel') -depends=('glibc>=2.25' 'zlib') -makedepends=('git') -checkdepends=('dejagnu' 'bc') -conflicts=('binutils-multilib') -replaces=('binutils-multilib') -options=('staticlibs' '!distcc' '!ccache') -source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit}) -md5sums=('SKIP') - -prepare() { - cd binutils-gdb - - # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS" - sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure - - mkdir ${srcdir}/binutils-build -} - -build() { - cd binutils-build - - ../binutils-gdb/configure \ ---prefix=/usr \ ---with-lib-path=/usr/lib:/usr/local/lib \ ---with-bugurl=https://bugs.archlinux.org/ \ ---enable-threads \ ---enable-shared \ ---enable-ld=default \ ---enable-gold \ ---enable-plugins \ ---enable-deterministic-archives \ ---with-pic \ ---disable-werror \ ---disable-gdb - - # check the host environment and makes sure all the necessary tools are available - make configure-host - - make tooldir=/usr -} - -check() { - cd binutils-build - - # unset LDFLAGS as testsuite makes assumptions about which ones are active - # ignore failures in gold testsuite... - make -k LDFLAGS="" check || true -} - -package() { - cd binutils-build - make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install - - # Remove unwanted files - rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* - - # No shared linking to these files outside binutils - rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so - echo "INPUT ( /usr/lib/libbfd.a -liberty -lz -ldl )" > "$pkgdir"/usr/lib/libbfd.so - echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" > "$pkgdir"/usr/lib/libopcodes.so -} Copied: binutils/repos/testing-i686/PKGBUILD (from rev 296132, binutils/trunk/PKGBUILD) === --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2017-05-15 16:24:41 UTC (rev 296133) @@ -0,0 +1,75 @@ +# $Id$ +# Maintainer: Allan McRae + +# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc + +pkgname=binutils +pkgver=2.28.0 +pkgrel=3 +_commit=09e514a92b6bb7c910051a7fafc9fded8a687848 +pkgdesc="A set of programs to assemble and manipulate binary and object files" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/binutils/"; +license=('GPL') +groups=('base-devel') +depends=('glibc>=2.25' 'zlib') +makedepends=('git') +checkdepends=('dejagnu' 'bc') +conflicts=('binutils-multilib') +replaces=('binutils-multilib') +options=('staticlibs' '!distcc' '!ccache') +source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit}) +md5sums=('SKIP') + +prepare() { + cd binutils-gdb + + # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure + + mkdir ${srcdir}/binutils-build +} + +build() { + cd binutils-build + + ../binutils-gdb/configure \ +--prefix=/usr \ +--with-lib-path=/usr/lib:/usr/local/lib \ +--with-bugurl=https://bugs.archlinux.org/ \ +--enable-threads \ +--enable-shared \ +--enable-ld=default \ +--enable-gold \ +--enable-plugins \ +--enable-deterministic-archives \ +--with-pic \ +--disable-werror \ +--disable-gdb + + # check the host environment and makes sure all the necessary tools are available + make configure-host + + make tooldir=/usr +} + +check() { + cd binutils-build + + # unset LDFLAGS as testsuite makes assumptions about which ones are active + # ignore failures in gold testsuite... + make -k LDFLA
[arch-commits] Commit in binutils/repos (4 files)
Date: Wednesday, May 10, 2017 @ 13:44:35 Author: bpiotrowski Revision: 295543 archrelease: copy trunk to testing-i686, testing-x86_64 Added: binutils/repos/testing-i686/ binutils/repos/testing-i686/PKGBUILD (from rev 295542, binutils/trunk/PKGBUILD) binutils/repos/testing-x86_64/ binutils/repos/testing-x86_64/PKGBUILD (from rev 295542, binutils/trunk/PKGBUILD) -+ testing-i686/PKGBUILD | 75 ++ testing-x86_64/PKGBUILD | 75 ++ 2 files changed, 150 insertions(+) Copied: binutils/repos/testing-i686/PKGBUILD (from rev 295542, binutils/trunk/PKGBUILD) === --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2017-05-10 13:44:35 UTC (rev 295543) @@ -0,0 +1,75 @@ +# $Id$ +# Maintainer: Allan McRae + +# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc + +pkgname=binutils +pkgver=2.28.0 +pkgrel=3 +_commit=09e514a92b6bb7c910051a7fafc9fded8a687848 +pkgdesc="A set of programs to assemble and manipulate binary and object files" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/binutils/"; +license=('GPL') +groups=('base-devel') +depends=('glibc>=2.25' 'zlib') +makedepends=('git') +checkdepends=('dejagnu' 'bc') +conflicts=('binutils-multilib') +replaces=('binutils-multilib') +options=('staticlibs' '!distcc' '!ccache') +source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit}) +md5sums=('SKIP') + +prepare() { + cd binutils-gdb + + # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure + + mkdir ${srcdir}/binutils-build +} + +build() { + cd binutils-build + + ../binutils-gdb/configure \ +--prefix=/usr \ +--with-lib-path=/usr/lib:/usr/local/lib \ +--with-bugurl=https://bugs.archlinux.org/ \ +--enable-threads \ +--enable-shared \ +--enable-ld=default \ +--enable-gold \ +--enable-plugins \ +--enable-deterministic-archives \ +--with-pic \ +--disable-werror \ +--disable-gdb + + # check the host environment and makes sure all the necessary tools are available + make configure-host + + make tooldir=/usr +} + +check() { + cd binutils-build + + # unset LDFLAGS as testsuite makes assumptions about which ones are active + # ignore failures in gold testsuite... + make -k LDFLAGS="" check || true +} + +package() { + cd binutils-build + make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install + + # Remove unwanted files + rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* + + # No shared linking to these files outside binutils + rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so + echo "INPUT ( /usr/lib/libbfd.a -liberty -lz -ldl )" > "$pkgdir"/usr/lib/libbfd.so + echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" > "$pkgdir"/usr/lib/libopcodes.so +} Copied: binutils/repos/testing-x86_64/PKGBUILD (from rev 295542, binutils/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2017-05-10 13:44:35 UTC (rev 295543) @@ -0,0 +1,75 @@ +# $Id$ +# Maintainer: Allan McRae + +# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc + +pkgname=binutils +pkgver=2.28.0 +pkgrel=3 +_commit=09e514a92b6bb7c910051a7fafc9fded8a687848 +pkgdesc="A set of programs to assemble and manipulate binary and object files" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/binutils/"; +license=('GPL') +groups=('base-devel') +depends=('glibc>=2.25' 'zlib') +makedepends=('git') +checkdepends=('dejagnu' 'bc') +conflicts=('binutils-multilib') +replaces=('binutils-multilib') +options=('staticlibs' '!distcc' '!ccache') +source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit}) +md5sums=('SKIP') + +prepare() { + cd binutils-gdb + + # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure + + mkdir ${srcdir}/binutils-build +} + +build() { + cd binutils-build + + ../binutils-gdb/configure \ +--prefix=/usr \ +--with-lib-path=/usr/lib:/usr/local/lib \ +--with-bugurl=https://bugs.archlinux.org/ \ +--enable-threads \ +--enable-shared \ +--enable-ld=default \ +--enable-gold \ +--enable-plugins \ +--enable-deterministic-archives \ +--with-pic \ +--disable-werror \ +--disable-gdb + + # check the host environment and makes sure all the necessary tools are available + make configure-host + + make tooldir=/usr +} + +check() { + cd binutils-build + + # unset LDFLAGS as testsuite makes assumptions about which ones are active + # ignore failures in gold testsuite... + make -k LDFLAGS="" check || tru