--- arm-elf-binutils/Makefile 2011-01-01 19:23:05.000000000 +0000 +++ arm-elf-binutils/Makefile 2011-01-05 23:23:11.000000000 +0000 @@ -7,8 +7,7 @@ # PORTNAME= binutils -PORTVERSION= 2.14 -PORTREVISION= 2 +PORTVERSION= 2.17 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEWARE} MASTER_SITE_SUBDIR= binutils/releases @@ -17,6 +16,8 @@ MAINTAINER= jflemer@alum.rpi.edu COMMENT= GNU binutils for vanilla ARM cross-development +LICENSE= GPLv2 + USE_BZIP2= yes USE_GMAKE= yes GNU_CONFIGURE= yes --- arm-elf-binutils/distinfo 2011-01-01 19:23:05.000000000 +0000 +++ arm-elf-binutils/distinfo 2011-01-01 19:24:08.000000000 +0000 @@ -1,3 +1,2 @@ -MD5 (binutils-2.14.tar.bz2) = 2da8def15d28af3ec6af0982709ae90a -SHA256 (binutils-2.14.tar.bz2) = e20bdd49a0fb317959b410c1fe81269a620ec21207045d8a37cadea621be4b59 -SIZE (binutils-2.14.tar.bz2) = 10921504 +SHA256 (binutils-2.17.tar.bz2) = e2c33ce6f23c9a366f109ced295626cb2f8bd6b2f08ff9df6dafb5448505a25e +SIZE (binutils-2.17.tar.bz2) = 13795751 --- arm-elf-binutils/files/patch-binutils-objcopy.c 1970-01-01 00:00:00.000000000 +0000 +++ arm-elf-binutils/files/patch-binutils-objcopy.c 2011-01-05 23:21:39.000000000 +0000 @@ -0,0 +1,12 @@ +--- binutils/objcopy.c 2007/06/29 00:34:14 1.115 ++++ binutils/objcopy.c 2007/07/02 08:05:06 1.116 +@@ -910,8 +910,7 @@ + { + asymbol **from = isyms, **to = osyms; + long src_count = 0, dst_count = 0; +- int relocatable = (abfd->flags & (HAS_RELOC | EXEC_P | DYNAMIC)) +- == HAS_RELOC; ++ int relocatable = (abfd->flags & (EXEC_P | DYNAMIC)) == 0; + + for (; src_count < symcount; src_count++) + { --- arm-elf-binutils/files/patch-ld-elf.sc 1970-01-01 00:00:00.000000000 +0000 +++ arm-elf-binutils/files/patch-ld-elf.sc 2011-01-05 23:22:00.000000000 +0000 @@ -0,0 +1,23 @@ +RCS file: /cvs/src/src/ld/scripttempl/elf.sc,v +retrieving revision 1.81 +retrieving revision 1.82 +diff -u -r1.81 -r1.82 +--- ld/scripttempl/elf.sc 2007/06/29 16:29:17 1.81 ++++ ld/scripttempl/elf.sc 2007/07/10 04:53:13 1.82 +@@ -124,7 +124,7 @@ + DYNAMIC=".dynamic ${RELOCATING-0} : { *(.dynamic) }" + RODATA=".rodata ${RELOCATING-0} : { *(.rodata${RELOCATING+ .rodata.* .gnu.linkonce.r.*}) }" + DATARELRO=".data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) }" +-STACKNOTE="/DISCARD/ : { *(.note.GNU-stack) }" ++DISCARDED="/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) }" + if test -z "${NO_SMALL_DATA}"; then + SBSS=".sbss ${RELOCATING-0} : + { +@@ -518,6 +518,6 @@ + ${ATTRS_SECTIONS} + ${OTHER_SECTIONS} + ${RELOCATING+${OTHER_SYMBOLS}} +- ${RELOCATING+${STACKNOTE}} ++ ${RELOCATING+${DISCARDED}} + } + EOF --- arm-elf-binutils/files/patch-ld-ldlang.c 1970-01-01 00:00:00.000000000 +0000 +++ arm-elf-binutils/files/patch-ld-ldlang.c 2011-01-05 23:22:00.000000000 +0000 @@ -0,0 +1,15 @@ +RCS file: /cvs/src/src/ld/ldlang.c,v +retrieving revision 1.218 +diff -u -p -r1.218 ldlang.c +--- ld/ldlang.c 17 May 2006 16:46:54 -0000 1.218 ++++ ld/ldlang.c 19 May 2006 02:39:55 -0000 +@@ -4198,7 +4198,8 @@ lang_size_sections_1 + /* If a loadable section is using the default memory + region, and some non default memory regions were + defined, issue an error message. */ +- if (!IGNORE_SECTION (os->bfd_section) ++ if (!os->ignored ++ && !IGNORE_SECTION (os->bfd_section) + && ! link_info.relocatable + && check_regions + && strcmp (os->region->name, --- arm-elf-binutils/pkg-plist 2011-01-01 19:23:05.000000000 +0000 +++ arm-elf-binutils/pkg-plist 2011-01-01 19:31:03.000000000 +0000 @@ -19,7 +19,9 @@ arm-elf/lib/ldscripts/armelf.xr arm-elf/lib/ldscripts/armelf.xs arm-elf/lib/ldscripts/armelf.xsc +arm-elf/lib/ldscripts/armelf.xsw arm-elf/lib/ldscripts/armelf.xu +arm-elf/lib/ldscripts/armelf.xw arm-elf/lib/libiberty.a bin/arm-elf-addr2line bin/arm-elf-ar