[arch-commits] Commit in binutils/repos (5 files)
Date: Tuesday, August 7, 2018 @ 23:18:31 Author: foutrelis Revision: 331140 archrelease: copy trunk to testing-x86_64 Added: binutils/repos/testing-x86_64/ binutils/repos/testing-x86_64/0001-PR23428-x86-Add-a-GNU_PROPERTY_X86_ISA_1_USED-note-if-needed.patch (from rev 331139, binutils/trunk/0001-PR23428-x86-Add-a-GNU_PROPERTY_X86_ISA_1_USED-note-if-needed.patch) binutils/repos/testing-x86_64/0002-PR23460-Close-resource-leaks-in-the-BFD-library-s-plugin-han.patch (from rev 331139, binutils/trunk/0002-PR23460-Close-resource-leaks-in-the-BFD-library-s-plugin-han.patch) binutils/repos/testing-x86_64/0003-PR23460-Add-a-testcase-for-PR-binutils-23460.patch (from rev 331139, binutils/trunk/0003-PR23460-Add-a-testcase-for-PR-binutils-23460.patch) binutils/repos/testing-x86_64/PKGBUILD (from rev 331139, binutils/trunk/PKGBUILD) -+ 0001-PR23428-x86-Add-a-GNU_PROPERTY_X86_ISA_1_USED-note-if-needed.patch | 515 ++ 0002-PR23460-Close-resource-leaks-in-the-BFD-library-s-plugin-han.patch | 104 ++ 0003-PR23460-Add-a-testcase-for-PR-binutils-23460.patch | 141 ++ PKGBUILD| 92 + 4 files changed, 852 insertions(+) Copied: binutils/repos/testing-x86_64/0001-PR23428-x86-Add-a-GNU_PROPERTY_X86_ISA_1_USED-note-if-needed.patch (from rev 331139, binutils/trunk/0001-PR23428-x86-Add-a-GNU_PROPERTY_X86_ISA_1_USED-note-if-needed.patch) === --- testing-x86_64/0001-PR23428-x86-Add-a-GNU_PROPERTY_X86_ISA_1_USED-note-if-needed.patch (rev 0) +++ testing-x86_64/0001-PR23428-x86-Add-a-GNU_PROPERTY_X86_ISA_1_USED-note-if-needed.patch 2018-08-07 23:18:31 UTC (rev 331140) @@ -0,0 +1,515 @@ +From f49ffdb448c81035e9ab285720cf74d59df2e111 Mon Sep 17 00:00:00 2001 +From: "H.J. Lu" +Date: Fri, 20 Jul 2018 09:18:47 -0700 +Subject: [PATCH] x86: Add a GNU_PROPERTY_X86_ISA_1_USED note if needed + +When -z separate-code, which is enabled by default for Linux/x86, is +used to create executable, ld won't place any data in the code-only +PT_LOAD segment. If there are no data sections placed before the +code-only PT_LOAD segment, the program headers won't be mapped into +any PT_LOAD segment. When the executable tries to access it (based +on the program header address passed in AT_PHDR), it will lead to +segfault. This patch inserts a GNU_PROPERTY_X86_ISA_1_USED note if +there may be no data sections before the text section so that the +first PT_LOAD segment won't be code-only and will contain the program +header. + +Testcases are adjusted to either pass "-z noseparate-code" to ld or +discard the .note.gnu.property section. A Linux/x86 run-time test is +added. + +bfd/ + + PR ld/23428 + * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): If the + separate code program header is needed, make sure that the first + read-only PT_LOAD segment has no code by adding a + GNU_PROPERTY_X86_ISA_1_USED note. + +ld/ + + PR ld/23428 + * testsuite/ld-elf/linux-x86.S: New file. + * testsuite/ld-elf/linux-x86.exp: Likewise. + * testsuite/ld-elf/pr23428.c: Likewise. + * testsuite/ld-elf/sec64k.exp: Pass "-z noseparate-code" to ld + for Linux/x86 targets. + * testsuite/ld-i386/abs-iamcu.d: Likewise. + * testsuite/ld-i386/abs.d: Likewise. + * testsuite/ld-i386/pr12718.d: Likewise. + * testsuite/ld-i386/pr12921.d: Likewise. + * testsuite/ld-x86-64/abs-k1om.d: Likewise. + * testsuite/ld-x86-64/abs-l1om.d: Likewise. + * testsuite/ld-x86-64/abs.d: Likewise. + * testsuite/ld-x86-64/pr12718.d: Likewise. + * testsuite/ld-x86-64/pr12921.d: Likewise. + * testsuite/ld-linkonce/zeroeh.ld: Discard .note.gnu.property + section. + * testsuite/ld-scripts/print-memory-usage.t: Likewise. + * testsuite/ld-scripts/size-2.t: Likewise. + * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use ld + to create executable if language is "asm". +--- + bfd/elfxx-x86.c | 60 ++- + ld/testsuite/ld-elf/linux-x86.S | 63 + ld/testsuite/ld-elf/linux-x86.exp| 46 ++ + ld/testsuite/ld-elf/pr23428.c| 43 + + ld/testsuite/ld-elf/sec64k.exp | 2 + + ld/testsuite/ld-i386/abs-iamcu.d | 2 +- + ld/testsuite/ld-i386/abs.d | 2 +- + ld/testsuite/ld-i386/pr12718.d | 2 +- + ld/testsuite/ld-i386/pr12921.d | 2 +- + ld/testsuite/ld-linkonce/zeroeh.ld | 1 + + ld/testsuite/ld-scripts/print-memory-usage.t | 2 + + ld/testsuite/ld-scripts/size-2.t | 1 + + ld/testsuite/ld-x86-64/abs-k1om.d| 2 +- +
[arch-commits] Commit in binutils/repos (5 files)
Date: Wednesday, May 2, 2018 @ 20:36:47 Author: bpiotrowski Revision: 323302 archrelease: copy trunk to staging-x86_64 Added: binutils/repos/staging-x86_64/ binutils/repos/staging-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch (from rev 323301, binutils/trunk/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch) binutils/repos/staging-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch (from rev 323301, binutils/trunk/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch) binutils/repos/staging-x86_64/0003-PR22836-r-s-doesnt-work-with-g3-using-GCC-7.patch (from rev 323301, binutils/trunk/0003-PR22836-r-s-doesnt-work-with-g3-using-GCC-7.patch) binutils/repos/staging-x86_64/PKGBUILD (from rev 323301, binutils/trunk/PKGBUILD) -+ 0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch | 29 + 0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch | 145 ++ 0003-PR22836-r-s-doesnt-work-with-g3-using-GCC-7.patch | 233 ++ PKGBUILD| 94 4 files changed, 501 insertions(+) Copied: binutils/repos/staging-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch (from rev 323301, binutils/trunk/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch) === --- staging-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch (rev 0) +++ staging-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch 2018-05-02 20:36:47 UTC (rev 323302) @@ -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/staging-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch (from rev 323301, binutils/trunk/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch) === --- staging-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch (rev 0) +++ staging-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch 2018-05-02 20:36:47 UTC (rev 323302) @@ -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; ++
[arch-commits] Commit in binutils/repos (5 files)
Date: Wednesday, April 11, 2018 @ 10:37:35 Author: bpiotrowski Revision: 321537 archrelease: copy trunk to staging-x86_64 Added: binutils/repos/staging-x86_64/ binutils/repos/staging-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch (from rev 321536, binutils/trunk/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch) binutils/repos/staging-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch (from rev 321536, binutils/trunk/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch) binutils/repos/staging-x86_64/PKGBUILD (from rev 321536, binutils/trunk/PKGBUILD) Deleted: binutils/repos/testing-x86_64/ -+ 0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch | 29 ++ 0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch | 145 ++ PKGBUILD| 89 ++ 3 files changed, 263 insertions(+) Copied: binutils/repos/staging-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch (from rev 321536, binutils/trunk/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch) === --- staging-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch (rev 0) +++ staging-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch 2018-04-11 10:37:35 UTC (rev 321537) @@ -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/staging-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch (from rev 321536, binutils/trunk/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch) === --- staging-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch (rev 0) +++ staging-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch 2018-04-11 10:37:35 UTC (rev 321537) @@ -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; ++ } ++
[arch-commits] Commit in binutils/repos (5 files)
Date: Thursday, March 15, 2018 @ 06:06:55 Author: foutrelis Revision: 319156 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 319155, 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 319155, binutils/trunk/0001-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch) binutils/repos/testing-x86_64/0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch (from rev 319155, binutils/trunk/0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch) binutils/repos/testing-x86_64/PKGBUILD (from rev 319155, 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 ++ 0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch | 29 ++ PKGBUILD| 94 ++ 4 files changed, 297 insertions(+) Copied: binutils/repos/testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch (from rev 319155, 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-03-15 06:06:55 UTC (rev 319156) @@ -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 319155, 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-03-15 06:06:55 UTC (rev 319156) @@ -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 =
[arch-commits] Commit in binutils/repos (5 files)
Date: Tuesday, April 3, 2012 @ 07:09:54 Author: allan Revision: 155398 db-move: moved binutils from [testing] to [core] (i686) Added: binutils/repos/core-i686/PKGBUILD (from rev 155397, binutils/repos/testing-i686/PKGBUILD) binutils/repos/core-i686/binutils.install (from rev 155397, binutils/repos/testing-i686/binutils.install) Deleted: binutils/repos/core-i686/PKGBUILD binutils/repos/core-i686/binutils.install binutils/repos/testing-i686/ --+ PKGBUILD | 180 +++-- binutils.install | 34 +- 2 files changed, 110 insertions(+), 104 deletions(-) Deleted: core-i686/PKGBUILD === --- core-i686/PKGBUILD 2012-04-03 11:09:44 UTC (rev 155397) +++ core-i686/PKGBUILD 2012-04-03 11:09:54 UTC (rev 155398) @@ -1,87 +0,0 @@ -# $Id$ -# Maintainer: Allan McRae al...@archlinux.org - -# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc - -pkgname=binutils -pkgver=2.22 -pkgrel=4 -_date=20111227 -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.14' 'zlib') -checkdepends=('dejagnu') -options=('!libtool' '!distcc' '!ccache') -install=binutils.install -source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) -md5sums=('c2377089c15bb1a1bfaeca8d0e59dd4d') - -mksource() { - mkdir ${pkgname}-${_date} - cd ${pkgname}-${_date} - export _TAG=binutils-2_22-branch - export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' - cvs -z9 co -r $_TAG binutils || return 1 - mv src binutils - tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* -} - -build() { - cd ${srcdir} - mkdir binutils-build cd binutils-build - - [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd --disable-multilib - - ${srcdir}/binutils/configure --prefix=/usr \ ---enable-ld=default --enable-gold \ ---enable-plugins --enable-threads \ ---enable-shared $CONFIGFLAG - - # check the host environment and makes sure all the necessary tools are available - make configure-host - - make tooldir=${pkgdir}/usr - - # Rebuild libiberty.a with -fPIC - cp -a libiberty libiberty-pic - make -C libiberty-pic clean - make CFLAGS=$CFLAGS -fPIC -C libiberty-pic - - # Rebuild libbfd.a with -fPIC - # hidden visability prevent 3rd party shared libraries exporting bfd non-stable API - cp -a bfd bfd-pic - make -C bfd-pic clean - make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic -} - -check() { - cd ${srcdir}/binutils-build - - # do not abort on errors - manually check log files - make -k -j1 check || true -} - -package() { - cd ${srcdir}/binutils-build - make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install - - # Add some useful headers - install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include - install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include - - # install libraries rebuilt with -fPIC - install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib - install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib - - # Remove Windows/Novell specific man pages - rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* - - # Remove these symlinks, they are not ABI stable. - # Programs should compile static to the .a file. - rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so - echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so - echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so -} Copied: binutils/repos/core-i686/PKGBUILD (from rev 155397, binutils/repos/testing-i686/PKGBUILD) === --- core-i686/PKGBUILD (rev 0) +++ core-i686/PKGBUILD 2012-04-03 11:09:54 UTC (rev 155398) @@ -0,0 +1,93 @@ +# $Id$ +# Maintainer: Allan McRae al...@archlinux.org + +# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc + +pkgname=binutils +pkgver=2.22 +pkgrel=5 +_date=20120323 +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.15' 'zlib') +checkdepends=('dejagnu') +options=('!libtool' '!distcc' '!ccache') +install=binutils.install +source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) +md5sums=('de2ac4298732827f8af706fc24020330') + +mksource() { + mkdir ${pkgname}-${_date} + cd ${pkgname}-${_date} + export _TAG=binutils-2_22-branch + export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' + cvs -z9 co -r $_TAG binutils || return 1 + mv src binutils + tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* +} + +build() { + cd ${srcdir} + mkdir binutils-build cd
[arch-commits] Commit in binutils/repos (5 files)
Date: Tuesday, April 3, 2012 @ 07:09:56 Author: allan Revision: 155399 db-move: moved binutils from [testing] to [core] (x86_64) Added: binutils/repos/core-x86_64/PKGBUILD (from rev 155397, binutils/repos/testing-x86_64/PKGBUILD) binutils/repos/core-x86_64/binutils.install (from rev 155397, binutils/repos/testing-x86_64/binutils.install) Deleted: binutils/repos/core-x86_64/PKGBUILD binutils/repos/core-x86_64/binutils.install binutils/repos/testing-x86_64/ --+ PKGBUILD | 180 +++-- binutils.install | 34 +- 2 files changed, 110 insertions(+), 104 deletions(-) Deleted: core-x86_64/PKGBUILD === --- core-x86_64/PKGBUILD2012-04-03 11:09:54 UTC (rev 155398) +++ core-x86_64/PKGBUILD2012-04-03 11:09:56 UTC (rev 155399) @@ -1,87 +0,0 @@ -# $Id$ -# Maintainer: Allan McRae al...@archlinux.org - -# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc - -pkgname=binutils -pkgver=2.22 -pkgrel=4 -_date=20111227 -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.14' 'zlib') -checkdepends=('dejagnu') -options=('!libtool' '!distcc' '!ccache') -install=binutils.install -source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) -md5sums=('c2377089c15bb1a1bfaeca8d0e59dd4d') - -mksource() { - mkdir ${pkgname}-${_date} - cd ${pkgname}-${_date} - export _TAG=binutils-2_22-branch - export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' - cvs -z9 co -r $_TAG binutils || return 1 - mv src binutils - tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* -} - -build() { - cd ${srcdir} - mkdir binutils-build cd binutils-build - - [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd --disable-multilib - - ${srcdir}/binutils/configure --prefix=/usr \ ---enable-ld=default --enable-gold \ ---enable-plugins --enable-threads \ ---enable-shared $CONFIGFLAG - - # check the host environment and makes sure all the necessary tools are available - make configure-host - - make tooldir=${pkgdir}/usr - - # Rebuild libiberty.a with -fPIC - cp -a libiberty libiberty-pic - make -C libiberty-pic clean - make CFLAGS=$CFLAGS -fPIC -C libiberty-pic - - # Rebuild libbfd.a with -fPIC - # hidden visability prevent 3rd party shared libraries exporting bfd non-stable API - cp -a bfd bfd-pic - make -C bfd-pic clean - make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic -} - -check() { - cd ${srcdir}/binutils-build - - # do not abort on errors - manually check log files - make -k -j1 check || true -} - -package() { - cd ${srcdir}/binutils-build - make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install - - # Add some useful headers - install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include - install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include - - # install libraries rebuilt with -fPIC - install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib - install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib - - # Remove Windows/Novell specific man pages - rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* - - # Remove these symlinks, they are not ABI stable. - # Programs should compile static to the .a file. - rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so - echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so - echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so -} Copied: binutils/repos/core-x86_64/PKGBUILD (from rev 155397, binutils/repos/testing-x86_64/PKGBUILD) === --- core-x86_64/PKGBUILD(rev 0) +++ core-x86_64/PKGBUILD2012-04-03 11:09:56 UTC (rev 155399) @@ -0,0 +1,93 @@ +# $Id$ +# Maintainer: Allan McRae al...@archlinux.org + +# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc + +pkgname=binutils +pkgver=2.22 +pkgrel=5 +_date=20120323 +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.15' 'zlib') +checkdepends=('dejagnu') +options=('!libtool' '!distcc' '!ccache') +install=binutils.install +source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) +md5sums=('de2ac4298732827f8af706fc24020330') + +mksource() { + mkdir ${pkgname}-${_date} + cd ${pkgname}-${_date} + export _TAG=binutils-2_22-branch + export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' + cvs -z9 co -r $_TAG binutils || return 1 + mv src binutils + tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* +} + +build() { +
[arch-commits] Commit in binutils/repos (5 files)
Date: Tuesday, January 3, 2012 @ 20:24:50 Author: allan Revision: 145910 db-move: moved binutils from [testing] to [core] (i686) Added: binutils/repos/core-i686/PKGBUILD (from rev 145909, binutils/repos/testing-i686/PKGBUILD) binutils/repos/core-i686/binutils.install (from rev 145909, binutils/repos/testing-i686/binutils.install) Deleted: binutils/repos/core-i686/PKGBUILD binutils/repos/core-i686/binutils.install binutils/repos/testing-i686/ --+ PKGBUILD | 170 +++-- binutils.install | 34 +- 2 files changed, 104 insertions(+), 100 deletions(-) Deleted: core-i686/PKGBUILD === --- core-i686/PKGBUILD 2012-01-04 01:24:34 UTC (rev 145909) +++ core-i686/PKGBUILD 2012-01-04 01:24:50 UTC (rev 145910) @@ -1,83 +0,0 @@ -# $Id$ -# Maintainer: Allan McRae al...@archlinux.org - -# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc - -pkgname=binutils -pkgver=2.22 -pkgrel=2 -_date=20111201 -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.14' 'zlib') -checkdepends=('dejagnu') -options=('!libtool' '!distcc' '!ccache') -install=binutils.install -source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) -md5sums=('77c15027ac112c65fd5f73ca91b0651c') - -mksource() { - mkdir ${pkgname}-${_date} - cd ${pkgname}-${_date} - export _TAG=binutils-2_22-branch - export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' - cvs -z9 co -r $_TAG binutils || return 1 - mv src binutils - tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* -} - -build() { - cd ${srcdir} - mkdir binutils-build cd binutils-build - - [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd --disable-multilib - - ${srcdir}/binutils/configure --prefix=/usr \ ---enable-ld=default --enable-gold \ ---enable-plugins --enable-threads \ ---enable-shared $CONFIGFLAG - - # check the host environment and makes sure all the necessary tools are available - make configure-host - - make tooldir=${pkgdir}/usr -} - -check() { - cd ${srcdir}/binutils-build - - # do not abort on errors - manually check log files - make -k -j1 check || true -} - -package() { - cd ${srcdir}/binutils-build - make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install - - # Add some useful headers - install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include - install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include - - # Rebuild libiberty.a with -fPIC - make -C libiberty clean - make CFLAGS=$CFLAGS -fPIC -C libiberty - install -m644 libiberty/libiberty.a ${pkgdir}/usr/lib - - # Rebuild libbfd.a with -fPIC - make -C bfd clean - # hidden visability prevent 3rd party shared libraries exporting bfd non-stable API - make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd - install -m644 bfd/libbfd.a ${pkgdir}/usr/lib - - # Remove Windows/Novell specific man pages - rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* - - # Remove these symlinks, they are not ABI stable. - # Programs should compile static to the .a file. - rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so - echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so - echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so -} Copied: binutils/repos/core-i686/PKGBUILD (from rev 145909, binutils/repos/testing-i686/PKGBUILD) === --- core-i686/PKGBUILD (rev 0) +++ core-i686/PKGBUILD 2012-01-04 01:24:50 UTC (rev 145910) @@ -0,0 +1,87 @@ +# $Id$ +# Maintainer: Allan McRae al...@archlinux.org + +# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc + +pkgname=binutils +pkgver=2.22 +pkgrel=4 +_date=20111227 +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.14' 'zlib') +checkdepends=('dejagnu') +options=('!libtool' '!distcc' '!ccache') +install=binutils.install +source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) +md5sums=('c2377089c15bb1a1bfaeca8d0e59dd4d') + +mksource() { + mkdir ${pkgname}-${_date} + cd ${pkgname}-${_date} + export _TAG=binutils-2_22-branch + export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' + cvs -z9 co -r $_TAG binutils || return 1 + mv src binutils + tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* +} + +build() { + cd ${srcdir} + mkdir binutils-build cd binutils-build + + [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd --disable-multilib + + ${srcdir}/binutils/configure
[arch-commits] Commit in binutils/repos (5 files)
Date: Tuesday, January 3, 2012 @ 20:24:51 Author: allan Revision: 145911 db-move: moved binutils from [testing] to [core] (x86_64) Added: binutils/repos/core-x86_64/PKGBUILD (from rev 145909, binutils/repos/testing-x86_64/PKGBUILD) binutils/repos/core-x86_64/binutils.install (from rev 145909, binutils/repos/testing-x86_64/binutils.install) Deleted: binutils/repos/core-x86_64/PKGBUILD binutils/repos/core-x86_64/binutils.install binutils/repos/testing-x86_64/ --+ PKGBUILD | 170 +++-- binutils.install | 34 +- 2 files changed, 104 insertions(+), 100 deletions(-) Deleted: core-x86_64/PKGBUILD === --- core-x86_64/PKGBUILD2012-01-04 01:24:50 UTC (rev 145910) +++ core-x86_64/PKGBUILD2012-01-04 01:24:51 UTC (rev 145911) @@ -1,83 +0,0 @@ -# $Id$ -# Maintainer: Allan McRae al...@archlinux.org - -# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc - -pkgname=binutils -pkgver=2.22 -pkgrel=2 -_date=20111201 -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.14' 'zlib') -checkdepends=('dejagnu') -options=('!libtool' '!distcc' '!ccache') -install=binutils.install -source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) -md5sums=('77c15027ac112c65fd5f73ca91b0651c') - -mksource() { - mkdir ${pkgname}-${_date} - cd ${pkgname}-${_date} - export _TAG=binutils-2_22-branch - export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' - cvs -z9 co -r $_TAG binutils || return 1 - mv src binutils - tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* -} - -build() { - cd ${srcdir} - mkdir binutils-build cd binutils-build - - [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd --disable-multilib - - ${srcdir}/binutils/configure --prefix=/usr \ ---enable-ld=default --enable-gold \ ---enable-plugins --enable-threads \ ---enable-shared $CONFIGFLAG - - # check the host environment and makes sure all the necessary tools are available - make configure-host - - make tooldir=${pkgdir}/usr -} - -check() { - cd ${srcdir}/binutils-build - - # do not abort on errors - manually check log files - make -k -j1 check || true -} - -package() { - cd ${srcdir}/binutils-build - make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install - - # Add some useful headers - install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include - install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include - - # Rebuild libiberty.a with -fPIC - make -C libiberty clean - make CFLAGS=$CFLAGS -fPIC -C libiberty - install -m644 libiberty/libiberty.a ${pkgdir}/usr/lib - - # Rebuild libbfd.a with -fPIC - make -C bfd clean - # hidden visability prevent 3rd party shared libraries exporting bfd non-stable API - make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd - install -m644 bfd/libbfd.a ${pkgdir}/usr/lib - - # Remove Windows/Novell specific man pages - rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* - - # Remove these symlinks, they are not ABI stable. - # Programs should compile static to the .a file. - rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so - echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so - echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so -} Copied: binutils/repos/core-x86_64/PKGBUILD (from rev 145909, binutils/repos/testing-x86_64/PKGBUILD) === --- core-x86_64/PKGBUILD(rev 0) +++ core-x86_64/PKGBUILD2012-01-04 01:24:51 UTC (rev 145911) @@ -0,0 +1,87 @@ +# $Id$ +# Maintainer: Allan McRae al...@archlinux.org + +# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc + +pkgname=binutils +pkgver=2.22 +pkgrel=4 +_date=20111227 +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.14' 'zlib') +checkdepends=('dejagnu') +options=('!libtool' '!distcc' '!ccache') +install=binutils.install +source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) +md5sums=('c2377089c15bb1a1bfaeca8d0e59dd4d') + +mksource() { + mkdir ${pkgname}-${_date} + cd ${pkgname}-${_date} + export _TAG=binutils-2_22-branch + export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' + cvs -z9 co -r $_TAG binutils || return 1 + mv src binutils + tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* +} + +build() { + cd ${srcdir} + mkdir binutils-build cd binutils-build + + [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd
[arch-commits] Commit in binutils/repos (5 files)
Date: Thursday, December 8, 2011 @ 07:17:05 Author: allan Revision: 144849 db-move: moved binutils from [testing] to [core] (i686) Added: binutils/repos/core-i686/PKGBUILD (from rev 144844, binutils/repos/testing-i686/PKGBUILD) binutils/repos/core-i686/binutils.install (from rev 144844, binutils/repos/testing-i686/binutils.install) Deleted: binutils/repos/core-i686/PKGBUILD binutils/repos/core-i686/binutils.install binutils/repos/testing-i686/ --+ PKGBUILD | 166 ++--- binutils.install | 34 +- 2 files changed, 100 insertions(+), 100 deletions(-) Deleted: core-i686/PKGBUILD === --- core-i686/PKGBUILD 2011-12-08 12:17:04 UTC (rev 144848) +++ core-i686/PKGBUILD 2011-12-08 12:17:05 UTC (rev 144849) @@ -1,83 +0,0 @@ -# $Id$ -# Maintainer: Allan McRae al...@archlinux.org - -# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc - -pkgname=binutils -pkgver=2.21.1 -pkgrel=2 -_date=20110627 -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') -depends=('glibc=2.14' 'zlib') -checkdepends=('dejagnu') -options=('!libtool' '!distcc' '!ccache') -install=binutils.install -source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) -md5sums=('2face559e80d649ba148e42bb2d1fb0f') - -mksource() { - mkdir ${pkgname}-${_date} - cd ${pkgname}-${_date} - export _TAG=binutils-2_21-branch - export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' - cvs -z9 co -r $_TAG binutils || return 1 - mv src binutils - tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* -} - -build() { - cd ${srcdir} - mkdir binutils-build cd binutils-build - - [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd --disable-multilib - - ${srcdir}/binutils/configure --prefix=/usr \ ---enable-ld=default --enable-gold \ ---enable-plugins --enable-threads \ ---enable-shared $CONFIGFLAG - - # check the host environment and makes sure all the necessary tools are available - make configure-host - - make tooldir=${pkgdir}/usr -} - -check() { - cd ${srcdir}/binutils-build - - # do not abort on errors - manually check log files - make -k -j1 check || true -} - -package() { - cd ${srcdir}/binutils-build - make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install - - # Add some useful headers - install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include - install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include - - # Rebuild libiberty.a with -fPIC - make -C libiberty clean - make CFLAGS=$CFLAGS -fPIC -C libiberty - install -m644 libiberty/libiberty.a ${pkgdir}/usr/lib - - # Rebuild libbfd.a with -fPIC - make -C bfd clean - # hidden visability prevent 3rd party shared libraries exporting bfd non-stable API - make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd - install -m644 bfd/libbfd.a ${pkgdir}/usr/lib - - # Remove Windows/Novell specific man pages - rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* - - # Remove these symlinks, they are not ABI stable. - # Programs should compile static to the .a file. - rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so - echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so - echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so -} Copied: binutils/repos/core-i686/PKGBUILD (from rev 144844, binutils/repos/testing-i686/PKGBUILD) === --- core-i686/PKGBUILD (rev 0) +++ core-i686/PKGBUILD 2011-12-08 12:17:05 UTC (rev 144849) @@ -0,0 +1,83 @@ +# $Id$ +# Maintainer: Allan McRae al...@archlinux.org + +# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc + +pkgname=binutils +pkgver=2.22 +pkgrel=2 +_date=20111201 +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.14' 'zlib') +checkdepends=('dejagnu') +options=('!libtool' '!distcc' '!ccache') +install=binutils.install +source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) +md5sums=('77c15027ac112c65fd5f73ca91b0651c') + +mksource() { + mkdir ${pkgname}-${_date} + cd ${pkgname}-${_date} + export _TAG=binutils-2_22-branch + export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' + cvs -z9 co -r $_TAG binutils || return 1 + mv src binutils + tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* +} + +build() { + cd ${srcdir} + mkdir binutils-build cd binutils-build + + [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd --disable-multilib + + ${srcdir}/binutils/configure
[arch-commits] Commit in binutils/repos (5 files)
Date: Thursday, December 8, 2011 @ 07:17:07 Author: allan Revision: 144850 db-move: moved binutils from [testing] to [core] (x86_64) Added: binutils/repos/core-x86_64/PKGBUILD (from rev 144844, binutils/repos/testing-x86_64/PKGBUILD) binutils/repos/core-x86_64/binutils.install (from rev 144844, binutils/repos/testing-x86_64/binutils.install) Deleted: binutils/repos/core-x86_64/PKGBUILD binutils/repos/core-x86_64/binutils.install binutils/repos/testing-x86_64/ --+ PKGBUILD | 166 ++--- binutils.install | 34 +- 2 files changed, 100 insertions(+), 100 deletions(-) Deleted: core-x86_64/PKGBUILD === --- core-x86_64/PKGBUILD2011-12-08 12:17:05 UTC (rev 144849) +++ core-x86_64/PKGBUILD2011-12-08 12:17:07 UTC (rev 144850) @@ -1,83 +0,0 @@ -# $Id$ -# Maintainer: Allan McRae al...@archlinux.org - -# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc - -pkgname=binutils -pkgver=2.21.1 -pkgrel=2 -_date=20110627 -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') -depends=('glibc=2.14' 'zlib') -checkdepends=('dejagnu') -options=('!libtool' '!distcc' '!ccache') -install=binutils.install -source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) -md5sums=('2face559e80d649ba148e42bb2d1fb0f') - -mksource() { - mkdir ${pkgname}-${_date} - cd ${pkgname}-${_date} - export _TAG=binutils-2_21-branch - export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' - cvs -z9 co -r $_TAG binutils || return 1 - mv src binutils - tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* -} - -build() { - cd ${srcdir} - mkdir binutils-build cd binutils-build - - [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd --disable-multilib - - ${srcdir}/binutils/configure --prefix=/usr \ ---enable-ld=default --enable-gold \ ---enable-plugins --enable-threads \ ---enable-shared $CONFIGFLAG - - # check the host environment and makes sure all the necessary tools are available - make configure-host - - make tooldir=${pkgdir}/usr -} - -check() { - cd ${srcdir}/binutils-build - - # do not abort on errors - manually check log files - make -k -j1 check || true -} - -package() { - cd ${srcdir}/binutils-build - make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install - - # Add some useful headers - install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include - install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include - - # Rebuild libiberty.a with -fPIC - make -C libiberty clean - make CFLAGS=$CFLAGS -fPIC -C libiberty - install -m644 libiberty/libiberty.a ${pkgdir}/usr/lib - - # Rebuild libbfd.a with -fPIC - make -C bfd clean - # hidden visability prevent 3rd party shared libraries exporting bfd non-stable API - make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd - install -m644 bfd/libbfd.a ${pkgdir}/usr/lib - - # Remove Windows/Novell specific man pages - rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* - - # Remove these symlinks, they are not ABI stable. - # Programs should compile static to the .a file. - rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so - echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so - echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so -} Copied: binutils/repos/core-x86_64/PKGBUILD (from rev 144844, binutils/repos/testing-x86_64/PKGBUILD) === --- core-x86_64/PKGBUILD(rev 0) +++ core-x86_64/PKGBUILD2011-12-08 12:17:07 UTC (rev 144850) @@ -0,0 +1,83 @@ +# $Id$ +# Maintainer: Allan McRae al...@archlinux.org + +# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc + +pkgname=binutils +pkgver=2.22 +pkgrel=2 +_date=20111201 +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.14' 'zlib') +checkdepends=('dejagnu') +options=('!libtool' '!distcc' '!ccache') +install=binutils.install +source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) +md5sums=('77c15027ac112c65fd5f73ca91b0651c') + +mksource() { + mkdir ${pkgname}-${_date} + cd ${pkgname}-${_date} + export _TAG=binutils-2_22-branch + export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' + cvs -z9 co -r $_TAG binutils || return 1 + mv src binutils + tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* +} + +build() { + cd ${srcdir} + mkdir binutils-build cd binutils-build + + [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd
[arch-commits] Commit in binutils/repos (5 files)
Date: Saturday, August 20, 2011 @ 03:14:17 Author: allan Revision: 135919 db-move: moved binutils from [testing] to [core] (i686) Added: binutils/repos/core-i686/PKGBUILD (from rev 135900, binutils/repos/testing-i686/PKGBUILD) binutils/repos/core-i686/binutils.install (from rev 135900, binutils/repos/testing-i686/binutils.install) Deleted: binutils/repos/core-i686/PKGBUILD binutils/repos/core-i686/binutils.install binutils/repos/testing-i686/ --+ PKGBUILD | 166 ++--- binutils.install | 34 +- 2 files changed, 100 insertions(+), 100 deletions(-) Deleted: core-i686/PKGBUILD === --- core-i686/PKGBUILD 2011-08-20 07:14:16 UTC (rev 135918) +++ core-i686/PKGBUILD 2011-08-20 07:14:17 UTC (rev 135919) @@ -1,83 +0,0 @@ -# $Id$ -# Maintainer: Allan McRae al...@archlinux.org - -# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc - -pkgname=binutils -pkgver=2.21.1 -pkgrel=1 -_date=20110627 -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') -depends=('glibc=2.14' 'zlib') -checkdepends=('dejagnu') -options=('!libtool' '!distcc' '!ccache') -install=binutils.install -source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) -md5sums=('2face559e80d649ba148e42bb2d1fb0f') - -mksource() { - mkdir ${pkgname}-${_date} - cd ${pkgname}-${_date} - export _TAG=binutils-2_21-branch - export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' - cvs -z9 co -r $_TAG binutils || return 1 - mv src binutils - tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* -} - -build() { - cd ${srcdir} - mkdir binutils-build cd binutils-build - - [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd --disable-multilib - - ${srcdir}/binutils/configure --prefix=/usr \ ---enable-ld=default --enable-gold \ ---enable-plugins --enable-threads \ ---enable-shared $CONFIGFLAG - - # check the host environment and makes sure all the necessary tools are available - make configure-host - - make tooldir=${pkgdir}/usr -} - -check() { - cd ${srcdir}/binutils-build - - # do not abort on errors - manually check log files - make -k -j1 check || true -} - -package() { - cd ${srcdir}/binutils-build - make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install - - # Add some useful headers - install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include - install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include - - # Rebuild libiberty.a with -fPIC - make -C libiberty clean - make CFLAGS=$CFLAGS -fPIC -C libiberty - install -m644 libiberty/libiberty.a ${pkgdir}/usr/lib - - # Rebuild libbfd.a with -fPIC - make -C bfd clean - # hidden visability prevent 3rd party shared libraries exporting bfd non-stable API - make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd - install -m644 bfd/libbfd.a ${pkgdir}/usr/lib - - # Remove Windows/Novell specific man pages - rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* - - # Remove these symlinks, they are not ABI stable. - # Programs should compile static to the .a file. - rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so - echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so - echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so -} Copied: binutils/repos/core-i686/PKGBUILD (from rev 135900, binutils/repos/testing-i686/PKGBUILD) === --- core-i686/PKGBUILD (rev 0) +++ core-i686/PKGBUILD 2011-08-20 07:14:17 UTC (rev 135919) @@ -0,0 +1,83 @@ +# $Id$ +# Maintainer: Allan McRae al...@archlinux.org + +# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc + +pkgname=binutils +pkgver=2.21.1 +pkgrel=2 +_date=20110627 +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') +depends=('glibc=2.14' 'zlib') +checkdepends=('dejagnu') +options=('!libtool' '!distcc' '!ccache') +install=binutils.install +source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) +md5sums=('2face559e80d649ba148e42bb2d1fb0f') + +mksource() { + mkdir ${pkgname}-${_date} + cd ${pkgname}-${_date} + export _TAG=binutils-2_21-branch + export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' + cvs -z9 co -r $_TAG binutils || return 1 + mv src binutils + tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* +} + +build() { + cd ${srcdir} + mkdir binutils-build cd binutils-build + + [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd --disable-multilib + + ${srcdir}/binutils/configure
[arch-commits] Commit in binutils/repos (5 files)
Date: Saturday, August 20, 2011 @ 03:14:19 Author: allan Revision: 135920 db-move: moved binutils from [testing] to [core] (x86_64) Added: binutils/repos/core-x86_64/PKGBUILD (from rev 135900, binutils/repos/testing-x86_64/PKGBUILD) binutils/repos/core-x86_64/binutils.install (from rev 135900, binutils/repos/testing-x86_64/binutils.install) Deleted: binutils/repos/core-x86_64/PKGBUILD binutils/repos/core-x86_64/binutils.install binutils/repos/testing-x86_64/ --+ PKGBUILD | 166 ++--- binutils.install | 34 +- 2 files changed, 100 insertions(+), 100 deletions(-) Deleted: core-x86_64/PKGBUILD === --- core-x86_64/PKGBUILD2011-08-20 07:14:17 UTC (rev 135919) +++ core-x86_64/PKGBUILD2011-08-20 07:14:19 UTC (rev 135920) @@ -1,83 +0,0 @@ -# $Id$ -# Maintainer: Allan McRae al...@archlinux.org - -# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc - -pkgname=binutils -pkgver=2.21.1 -pkgrel=1 -_date=20110627 -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') -depends=('glibc=2.14' 'zlib') -checkdepends=('dejagnu') -options=('!libtool' '!distcc' '!ccache') -install=binutils.install -source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) -md5sums=('2face559e80d649ba148e42bb2d1fb0f') - -mksource() { - mkdir ${pkgname}-${_date} - cd ${pkgname}-${_date} - export _TAG=binutils-2_21-branch - export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' - cvs -z9 co -r $_TAG binutils || return 1 - mv src binutils - tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* -} - -build() { - cd ${srcdir} - mkdir binutils-build cd binutils-build - - [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd --disable-multilib - - ${srcdir}/binutils/configure --prefix=/usr \ ---enable-ld=default --enable-gold \ ---enable-plugins --enable-threads \ ---enable-shared $CONFIGFLAG - - # check the host environment and makes sure all the necessary tools are available - make configure-host - - make tooldir=${pkgdir}/usr -} - -check() { - cd ${srcdir}/binutils-build - - # do not abort on errors - manually check log files - make -k -j1 check || true -} - -package() { - cd ${srcdir}/binutils-build - make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install - - # Add some useful headers - install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include - install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include - - # Rebuild libiberty.a with -fPIC - make -C libiberty clean - make CFLAGS=$CFLAGS -fPIC -C libiberty - install -m644 libiberty/libiberty.a ${pkgdir}/usr/lib - - # Rebuild libbfd.a with -fPIC - make -C bfd clean - # hidden visability prevent 3rd party shared libraries exporting bfd non-stable API - make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd - install -m644 bfd/libbfd.a ${pkgdir}/usr/lib - - # Remove Windows/Novell specific man pages - rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* - - # Remove these symlinks, they are not ABI stable. - # Programs should compile static to the .a file. - rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so - echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so - echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so -} Copied: binutils/repos/core-x86_64/PKGBUILD (from rev 135900, binutils/repos/testing-x86_64/PKGBUILD) === --- core-x86_64/PKGBUILD(rev 0) +++ core-x86_64/PKGBUILD2011-08-20 07:14:19 UTC (rev 135920) @@ -0,0 +1,83 @@ +# $Id$ +# Maintainer: Allan McRae al...@archlinux.org + +# toolchain build order: linux-api-headers-glibc-binutils-gcc-binutils-glibc + +pkgname=binutils +pkgver=2.21.1 +pkgrel=2 +_date=20110627 +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') +depends=('glibc=2.14' 'zlib') +checkdepends=('dejagnu') +options=('!libtool' '!distcc' '!ccache') +install=binutils.install +source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) +md5sums=('2face559e80d649ba148e42bb2d1fb0f') + +mksource() { + mkdir ${pkgname}-${_date} + cd ${pkgname}-${_date} + export _TAG=binutils-2_21-branch + export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src' + cvs -z9 co -r $_TAG binutils || return 1 + mv src binutils + tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/* +} + +build() { + cd ${srcdir} + mkdir binutils-build cd binutils-build + + [[ $CARCH == x86_64 ]] CONFIGFLAG=--enable-64-bit-bfd