Commit graph

24 commits

Author SHA1 Message Date
ryoon
438c42eb93 Update to 2.26.1
* Remove merged patches

Changelog:
gas:
* Add a configure option --enable-x86-relax-relocations to decide whether
  x86 assembler should generate relax relocations by default.  Default to
  yes, except for x86 Solaris targets older than Solaris 12.

* New command line option -mrelax-relocations= for x86 target to control
  whether to generate relax relocations.
2016-08-15 19:29:13 +00:00
jperkin
6b95bab0ab Backport SunOS 32-bit -mrelax-relocations fix from 2.26.1. Bump PKGREVISION. 2016-02-03 19:56:34 +00:00
ryoon
1b809da856 Update to 2.26
Changelog:
Changes in 2.26:

* Add option to objcopy to insert new symbols into a file:
  --add-symbol <name>=[<section>:]<value>[,<flags>]

* Add support for the ARC EM/HS, and ARC600/700 architectures.

* Extend objcopy --compress-debug-sections option to support
  --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] for ELF
  targets.

* Add --update-section option to objcopy.

* Add --output-separator option to strings.
2016-01-30 22:15:11 +00:00
ryoon
5b120615a1 Add upstream bug report URL. 2015-09-28 16:37:55 +00:00
sevan
f4c7c0d175 Unbreak on Bitrig/amd64, ARM support not implemented yet.
Patches filed upstream as binutils/18920

Reviewed by wiz@
2015-09-03 20:55:55 +00:00
ryoon
a0f89fa59c Update to 2.25
Changelog:
Not available?
As far as I know:
* Add Andes NDS32 architecture support.
* Improve Solaris support.
2015-06-09 20:24:39 +00:00
joerg
a6248a6ae6 Use C++11 containers in gold for libc++, old ext version doesn't work on
ARM due to lack of long long support.
2015-03-24 14:23:14 +00:00
joerg
90d74f94ee Add forgotten patch for libc++ build. 2014-05-27 09:56:33 +00:00
joerg
201e561f5f Redo -ldl handling. Be nicer to libc++. 2014-05-27 09:56:10 +00:00
marino
4abf9786c5 devel/binutils: Squash erroneous hidden symbol warnings from gold linker
The gold linker is overly pedantic for dynamic references to symbols
with hidden visibility.  It will spew error messages about weak symbols
in libc.so that ld.bfd does not complain about. Until the bug is resolved
disable the hidden symbol warnings.  These warning also cause > 200
false failures in the gcc gnat.dg testsuite.

https://sourceware.org/bugzilla/show_bug.cgi?id=15574

This patch will keep the internal symbol warnings but suppress those
regaring symbols with hidden visibility because they aren't considered
errors by the bfd linker.
2014-05-12 19:10:08 +00:00
marino
4dd8c1fc15 devel/binutils: Change default behavior of gold for NetBSD & OpenBSD
The Gold linker defaults to the use of --new-dtags which uses DT_RUNPATH
instead of DT_RPATH.  In previous version of binutils, --new-dtags would
write set both DT_RUNPATH and DT_PATH, but not anymore.  The problem is
that neither NetBSD nor OpenBSD runtime linkers properly handle it
AFAICT.  Use macros to make DT_RPATH get set when -rpath switch is used
so that linked libraries can get found on these platforms.

Similarly, it appears that DT_INIT_ARRAY tags are also not handled by
rtld, so don't use these tags by default otherwise C++ will not link
on these platforms.

The copy-as-needed attribute has been left at its binutils default of
--no-copy-dt-needed.  This has been the default since binutils 2.22.
2014-05-12 16:33:20 +00:00
jperkin
025cdbe546 Handle 256 file descriptor limit in 32-bit SunOS environment.
Bump PKGREVISION.
2014-05-12 13:17:01 +00:00
marino
9b8bba62bc devel/binutils: Build gold linker on some platforms
The gold linker isn't a default option on binutils.  Change the Makefile
to make gold build on recent *BSD. Tested on NetBSD 6.1.4 and OpenBSD 5.5.
Gold is known to build on FreeBSD although FreeBSD 10 may need additional
patches.  Gold is part of the system binutils on DragonFly.
2014-05-12 12:49:59 +00:00
ryoon
b0731ffea8 Add OpenBSD/amd64 5.4 support 2014-01-26 03:49:01 +00:00
jperkin
cd6873bc2b Fix sign-compare on SunOS. 2014-01-08 21:04:14 +00:00
wiz
390d61caad Update to 2.24:
binutils:

Changes in 2.24:

* Objcopy now supports wildcard characters in command line options that take
  section names.

* Add support for Altera Nios II.

gas:

Changes in 2.24:

* Add support for the Texas Instruments MSP430X processor.

* Add -gdwarf-sections command line option to enable per-code-section
  generation of DWARF .debug_line sections.

* Add support for Altera Nios II.

* Add support for the Imagination Technologies Meta processor.

* Add support for the v850e3v5.

* Remove assembler support for MIPS ECOFF targets.

ld:

Changes in 2.24:

* Add LOG2CEIL() builtin function to the linker script language

* Add support for the Texas Instruments MSP430X processor.

* Add support for Altera Nios II.

* Add support for the V850E3V5 architecture.

* Add support for the Imagination Technologies Meta processor.

* --enable-new-dtags no longer generates old dtags in addition to new dtags.

* Remove linker support for MIPS ECOFF targets.

* Add ALIGN_WITH_INPUT to the linker script language to force the alignment of
  an output section to use the maximum alignment of all its input sections.
2014-01-06 14:58:41 +00:00
jperkin
62587b37b5 Update to binutils-2.22, mostly from wip/binutils.
Changes since binutils-2.17 are too numerous to mention, see the various
NEWS files for details.

Tested on NetBSD 6.0_BETA2 and SmartOS.
2012-07-23 12:24:34 +00:00
wiz
b021662d07 Fix build with gcc-4.5.
Set LICENSE. Fix a pkglint warning.
2011-08-22 08:51:46 +00:00
rillig
8a2abcff89 Fixed a gcc warning reported in PR 36777:
read.c:1426: warning: 'stopc' may be used uninitialized in this function
2007-08-14 09:08:07 +00:00
martti
5a1e5447b1 Updated devel/binutils to 2.17
List of changes unknown. Should fix CVE-2006-2362.
2007-05-29 12:25:03 +00:00
joerg
6102fc8e42 Use the same configuration for DragonFly as FreeBSD is using. 2006-02-26 23:59:41 +00:00
wiz
259d99738f Update to 2.16.1, provided by Andreas Hallmann in PR 32190.
Changes in binutils:

* Binutils-2.16 will be the last release for a number of targets due to
  lack of maintenance (of course, if maintainers step up, then this list
  will change!).  The targets are:

    a29k-*-*
    d10v-*-*
    d30v-*-*
    dlx-*-*
    h8300-*-coff
    h8300-*-rtems*
    h8500-*-coff
    h8500-*-rtems*
    i370-*-*
    i960-*-*
    i960-*-bout
    i960-*-coff
    i960-*-nindy*
    i960-*-rtems*
    i960-*-vxworks*
    i960-*-vxworks5.*
    i960-*-vxworks5.0
    m68k-*-coff
    m68k-*-hpux*
    m68k-*-linux*aout*
    m68k-*-rtemscoff*
    m68k-*-sunos*
    m68k-*-sysv*
    m68k-*-vxworks*
    m68k-apollo-*
    m68k-apple-aux*
    m68k-bull-sysv3*
    m68k-ericsson-ose
    m68k-motorola-sysv*
    m88k-*-*					(*)
    mn10200-*-*
    openrisc-*-*
    or32-*-*
    or32-*-coff
    pj*-*-*
    sh-*-coff*
    sh-*-rtemscoff*
    tic80-*-*
    vax-*-bsd*					(*)
    vax-*-netbsd* excluding vax-*-netbsdelf	(*)
    vax-*-ultrix*				(*)
    w65-*-*
    xscale-*-coff
    *-*-linux*aout*
    *-*-linux*oldld

    (*) bfd and opcodes support will be kept.

* Add "-g/--section-groups" to readelf to display section groups.

* objcopy recognizes two new options --strip-unneeded-symbol and
  --strip-unneeded-symbols, namely for use together with the wildcard
  matching the original --strip-symbol/--strip-symbols provided, but
  retaining any symbols matching but needed by relocations.

* readelf can now display address ranges from .debug_range sections.  This
  happens automatically when a DW_AT_range attribute is encountered.  The
  command line switch --debug-dump=Ranges (or -wR) can also be used to display
  the contents of the .debug_range section.

* nm and objdump now have a switch "--special-syms" to enable the displaying of
  symbols which the target considers to be special.  By default these symbols
  are no longer displayed.  Currently the only special symbols are the Mapping
  symbols used by the ARM port to mark transitions between text and data and
  between ARM and THUMB code.

* dlltool has a switch "--ext-prefix-alias <prefix>" to generate additional
  import and export symbols with <preifx> prepended to them.

Changes in gas:

* Redefinition of macros now results in an error.

* New command line option -mhint.b=[ok|warning|error] for IA64 targets.

* New command line option -munwind-check=[warning|error] for IA64
  targets.

* The IA64 port now uses automatic dependency violation removal as its default
  mode.

* Port to MAXQ processor contributed by HCL Tech.

* Added support for generating unwind tables for ARM ELF targets.

* Add a -g command line option to generate debug information in the target's
  preferred debug format.

* Support for the crx-elf target added.

* Support for the sh-symbianelf target added.

* Added a pseudo-op (.secrel32) to generate 32 bit section relative relocations
  on pe[i]-i386; required for this target's DWARF 2 support.

* Support for Motorola MCF521x/5249/547x/548x added.

* Support for ColdFire EMAC instructions added and Motorola syntax for MAC/EMAC
  instrucitons.

* New command line option -mno-shared for MIPS ELF targets.

* New command line option --alternate and pseudo-ops .altmacro and .noaltmacro
  added to enter (and leave) alternate macro syntax mode.

Changes in ld:

* Support for the R_ARM_V4BX relocation as defined in the ARM AAELF
  specification has been added via the --fix-v4bx command-line option.

* New linker script construct AS_NEEDED(), which sets the --as-needed flag
  for input files listed inside of it.

* A new command-line option, --sysroot, can be used to override the
  default sysroot location.  It only applies to toolchains that were
  configured using --with-sysroot.

* New linker script functions: ORIGIN() and LENGTH() which return information
  about a specified memory region.

* Port to MAXQ processor contributed by HCL Tech.

* Added SEGMENT_START to the linker script language to permit the user to
  override the base address for a segment from the command-line.

* ELF: --warn-shared-textrel option to warn if adding a DT_TEXTREL to a shared
  object.

* Added SORT_BY_NAME and SORT_BY_ALIGNMENT to the linker script
  language to permit sorting sections by section name or section
  maximum alignment.

* Added a new linker command line switch, --sort-section name|alignment,
  to sort sections by section name or maximum alignment.

* ELF: --add-needed/--no-add-needed options to control if a DT_NEEDED tag
  should be added when a shared library comes from DT_NEEDED tags.

* Support for the crx-elf target added.

* Support for the sh-symbianelf target added.

* A new linker command line switch has been added which allows the hash table
  size to be set to a suitable prime value near to its argument.  This switch
  is --hash-size=<NUMBER>.  Also if the switch --reduce-memory-overheads is
  used, and --hash-size has not been used, then the default value will be set
  to 1021.

* Linker map files are now generated with an O(N) algorithm for finding symbols
  that are defined in each section.  This uses about 40% more memory for
  symbols than the old O(N^2) algorithm.  You can use the new
  --reduce-memory-overheads option to select the old algorithm; this option
  might also be used in the future to select similar tradeoffs.
2006-01-07 23:59:46 +00:00
fredb
e2ea4670d3 Update to binutils "2.14.0.0". (The ".0.0" is to allow any PKGREVISION
bumps to correctly sort before "2.14.1", and "2.14.1.1", and so on.)

Follows is a list of additions to the "NEWS" files since 2.13. The "NEWS"
files were apparently not updated for "2.13.2.1" however, so all of this
is not really new. The "--with-sysroot" and "--with-lib-path" configure
options for "ld" are truly new, though, and the package now takes advantage
of "--with-lib-path" to prevent picking up crud from "${PREFIX}/lib", to
better support using this "ld" with which to build pkgsrc packages.

----- binutils/binutils/NEWS -----

* Added --info switch to objcopy and strip.

* Support for Vitesse IQ2000 added by Red Hat.

* Added 'S' encoding to strings to allow the display of 8-bit characters.

* Added --prefix-symbols=<text>, --prefix-sections=<text> and
  --prefix-alloc-sections=<text> to objcopy.

* readelf can handle the extensions to the DWARF2 spec used by the Unified
  Parallel C compiler.

* BFD no longer declares a "boolean" type, to avoid clashes with other
  headers that declare the same.  Users of BFD should replace boolean,
  false and true, with int, 0 and 1, or define their own boolean type.

* Support for IP2K added by Denis Chertykov.

----- binutils/gas/NEWS -----

* Added support for MIPS32 Release 2.

* Added support for Xtensa architecture.

* Support for Intel's iWMMXt processor (an ARM variant) added.

* An assembler test generator has been contributed and an example file that
  uses it (gas/testsuite/gas/all/test-gen.c and test-exmaple.c).

* Support for SH2E added.

* GASP has now been removed.

* Support for Texas Instruments TMS320C4x and TMS320C3x series of
  DSP's contributed by Michael Hayes and Svein E. Seldal.

* Support for the Ubicom IP2xxx microcontroller added.

----- binutils/ld/NEWS -----

* Added support for Xtensa architecture.

* Added --with-sysroot configure switch to specify a target system root, for
  linking against a target filesystem image.

* Added --accept-unknown-linker-format to restore old linker behaviour (pre
  2.14) of silently accepting and linking in any files in an unknown binary
  file format.

* Added --no-omagic to undo the effects of the -N option.

* Support for Texas Instruments TMS320C4x and TMS320C3x series of
  DSP's contributed by Michael Hayes and Svein E. Seldal.

* Added --with-lib-path configure switch to specify default value for
  LIB_PATH.

* ARM port to QNX operating system added by Graeme Peterson.

* IP2K support added by Denis Chertykov.
2003-07-14 19:01:35 +00:00
fredb
2ad90a1114 Update binutils to 2.13.2.1. "gasp" is gone; "strings" accepts an
argument of "--encoding", to help it to look for wide strings; plus
a few other obscure additions. Most importantly, "gas" now generates
correct code when used with gcc-3.x at high optimization levels.
(See gcc bugzilla: optimization/10877.)
2003-06-08 20:17:13 +00:00