B.3. Changes in binutils
Red Hat Developer Toolset 3.0 is distributed with binutils 2.24, which provides a number of bug fixes and feature enhancements over the version included in Red Hat Enterprise Linux and the previous version of Red Hat Developer Toolset. Below is a comprehensive list of new features in this release.
B.3.1. Changes Since Red Hat Enterprise Linux 6.6
The following features have been added since the release of binutils in Red Hat Enterprise Linux 6.6:
The GNU assembler (
as), GNU linker (ld), and other binary tools that are part of binutils are now released under the GNU General Public License, version 3.
B.3.1.1. GNU Linker
Another ELF linker,
gold, is now available in addition to ld, the existing GNU linker. gold is intended to be a drop-in replacement for ld, so ld's documentation is intended to be the reference documentation. gold supports most of ld's features, except notable ones such as MRI-compatible linker scripts, cross-reference reports (--cref), and various other minor options. It also provides significantly improved link time with very large C++ applications.
In Red Hat Developer Toolset 3.0, the
gold linker is not enabled by default. Users can explicitly switch between ld and gold by using the alternatives mechanism.
B.3.1.1.1. New Features
The following features have been added since the release of binutils included in Red Hat Enterprise Linux 6.6:
- A new
INPUT_SECTION_FLAGSkeyword has been added to the linker script language. This keyword can be used to select input sections by section header flags. - A new
SORT_BY_INIT_PRIORITYkeyword has been added to the linker script language. This keyword can be used to sort sections by numerical value of the GCCinit_priorityattribute encoded in the section name. - A new
SORT_NONEkeyword has been added to the linker script language. This keyword can be used to disable section sorting. - A new linker-provided symbol,
__ehdr_start, has been added. When producing ELF output, this symbol points to the ELF file header (and nearby program headers) in the program's memory image.
B.3.1.1.2. Compatibility Changes
The following compatibility changes have been made since the release of binutils included in Red Hat Enterprise Linux 6.6:
- The
--copy-dt-needed-entriescommand line option is no longer enabled by default. Instead,--no-copy-dt-needed-entriesis now the default option. - Evaluation of linker script expressions has been significantly improved. Note that this can negatively affect scripts that rely on undocumented behavior of the old expression evaluation.
B.3.1.2. GNU Assembler
B.3.1.2.1. New Features
The following features have been added since the release of binutils included in Red Hat Enterprise Linux 6.6:
- The GNU Assembler no longer requires double ampersands in macros.
- A new
--compress-debug-sectionscommand line option has been added to enable compression of DWARF debug information sections in the relocatable output file. Compressed debug sections are currently supported by thereadelf,objdump, andgoldtools, but not byld. - Support for
.bundle_align_mode,.bundle_lock, and.bundle_unlockdirectives for x86 targets has been added.. - On x86 architectures, the GNU Assembler now allows
rep bsf,rep bsr, andrep retsyntax.
B.3.1.3. Other Binary Tools
B.3.1.3.1. New Features
The following features have been added since the release of binutils included in Red Hat Enterprise Linux 6.6:
- Support for
dwz -moptimized debug information has been added. - The devtoolset-2-binutils-devel package now provides the
demangle.hheader file.
B.3.2. Changes Since Red Hat Developer Toolset 2.1 and Red Hat Enterprise Linux 7.0
The following bugs have been fixed and features added since the release of binutils in Red Hat Developer Toolset 2.1 and Red Hat Enterprise Linux 7.0:
- The detection of uncompressed
.debug_strsections has been fixed. - The decoding of abbreviations using the
DW_FORM_ref_addrattribute has been fixed. - The objcopy utility now supports wildcards for section names in command line options.
- The BFD linker script language now supports the
ALIGN_WITH_INPUTdirective for output sections. The directive directs the linker to compute the maximum alignment of the associated input sections and use that alignment for the output section. - The AVX-512 (512-bit Advanced Vector Extensions) are now supported.