Skip to main content
AI
  • Get started with AI

    • Red Hat AI

      Accelerate the development and deployment of enterprise AI solutions.

    • AI learning hub

      Explore learning materials and tools, organized by task.

    • AI interactive demos

      Click through scenarios with Red Hat AI, including training LLMs and more.

    • AI/ML learning paths

      Expand your Red Hat OpenShift AI knowledge using these learning resources.

    • AI quickstarts

      Focused AI use cases designed for fast deployment on Red Hat AI platforms.

    • No-cost AI training

      Foundational Red Hat AI training.

  • Featured resources

    • Red Hat OpenShift AI
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

Red Hat AI Factory with NVIDIA

Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.

Learn
  • Self-guided

    • Documentation

      Find answers, get step-by-step guidance, and learn how to use Red Hat products.

    • Learning paths

      Explore curated walkthroughs for common development tasks.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • See all learning
  • Hands-on

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

    • Interactive labs

      Learn by doing in these hands-on, browser-based experiences.

    • Interactive demos

      Click through product features in these guided tours.

  • Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics
  • Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
Build
  • Get started

    • Red Hat build of Podman Desktop

      A downloadable, local development hub to experiment with our products and builds.

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

  • Download products

    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products
  • Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset
  • References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
Community
  • Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions
  • Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github
  • Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

Join the Red Hat Developer program

Download Red Hat products and project builds, access support documentation, learning content, and more.

ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Cheat sheets
  • Red Hat Developer learning portal
  • Developer blog
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

GNU Toolchain Update - Spring 2018

March 26, 2018
Nick Clifton
Related topics:
Developer toolsC, C#, C++

    The GNU Toolchain is a collection of programming tools produced by the GNU Project. The tools are often packaged together due to their common use for developing software applications, operating systems, and low-level software for embedded systems.

    This blog is part of a series (see: Fall 2017 Update) covering the latest changes and improvements in the components that make up this Toolchain. Apart from the announcement of new releases, the features described here are at the bleeding edge of software development in the tools. This means that it may be awhile before they make it into production releases, and they might not be fully functional yet. But anyone who is interested in experimenting with them can build their own copy of the Toolchain and then try them out.

    GLIBC

    Version 2.27 is now out; there are loads of new features and bug fixes in this release. Some of the highlights include:

    • The library can now be compiled with support for building static PIE executables.
    • The abort function terminates the process immediately, without flushing stdio streams. Previous glibc versions used to flush streams, resulted in deadlocks and further data corruption.
    • Support for memory protection keys was added. The <sys/mman.h> header now declares the functions pkey_alloc, pkey_free, pkey_mprotect, pkey_set, pkey_get.
    • The copy_file_range function has been added.
    • Support for the RISC-V ISA running on Linux has been added.

    For full details see:
    https://sourceware.org/ml/libc-announce/2018/msg00000.html

    BINUTILS

    Version 2.30 is now out; there are several new features in this release, including:

    • Assembler support for location views in DWARF debug line information.
    • The bfd linker now has a -z separate-code command line option to generate a separate code PT_LOAD segment.
    • The bfd linker also now has a -z undefs command line option as the inverse of the -z defs option.
    • The gold linker now has a -z text-unlikely-segment option which will move all .text.unlikely sections to a separate segment.
    • The DWARF dumping tools (readelf, objdump) now support options to display and follow links to separate debug information files.

    For full details see:
    https://sourceware.org/ml/binutils/2018-01/msg00381.html

    GDB

    Version 8.1 of GDB is now out, which includes the following new features:

    • Breakpoints on C++ functions are now set on all scopes by default ("wild" matching).
    • Improved Rust support; in particular, Trait objects can now be inspected when debugging Rust code.
    • The enable and disable commands now accept a range of breakpoint locations.
    • New rbreak command to insert a number of breakpoints via a regular expression pattern.

    For full details see:
    https://www.gnu.org/software/gdb/news/

    NEWLIB

    Version 3.0.0 of the newlib C library is now out; this version includes:

    • K&R support is removed in code and docs.
    • 64-bit time_t support.
    • RISC-V platform support added.
    • New expf, exp2f, logf, and powf implementations.
    • New long double complex math routines.

    GCC

    Meanwhile GCC is fast approaching the branch date for version 8.  Even so, several new features have been added in the past few months:

    • Control Flow Protection
      The new option -fcf-protection=[full|branch|return|none] enables or disables instrumentation of branches and return instructions to make sure that their destinations are valid. Currently the x86 GNU/Linux target provides an implementation based on Intel Control-flow Enforcement Technology (CET).  Instrumentation for x86 is controlled by target-specific options:
      -mcet, -mibt and -mshstk.
    • Stack Clash Protection
      The new option -fstack-clash-protection generates code to prevent stack clash style attacks. When this option is enabled, the compiler will only allocate one page of stack space at a time and each page is accessed immediately after allocation.
    • Patchable Function Entry Points
      The new option -fpatchable-function-entry=N[,M] generates N nop instructions right at the beginning of each function, with the function entry point before the M'th nop. The nop instructions reserve extra space which can be used to patch in any desired instrumentation at run time, provided that the code segment is writeable. The amount of space is controllable indirectly via the number of nops.
    • Support for new C and C++ Standards
      The -std= command line option now accepts c17, c++17, and c++2a as standard names. These correspond to the ISO C17 standard, the 2017 ISO C++ standard, and the next revision of the ISO C++ standard, tentatively planned for 2020.
    • New Warning Options
      • -Wmissing-attributes:
        Warn when a declaration of a function is missing one or more attributes that a related function is declared with and whose absence may adversely affect the correctness or efficiency of generated code. Automatically enabled with -Wall.
      • -Wstringop-truncation:
        Warn for calls to bounded string manipulation functions such as strncat, strncpy, and stpncpy that may either truncate the copied string or leave the destination unchanged.
      • -Wcast-align=strict:
        Warn whenever a pointer is cast such that the required alignment of the target is increased. For example, warn if a char * is cast to an int *.
      • -Wcast-function-type:
        Warn when a function pointer is cast to an incompatible function pointer. In a cast involving function types with a variable argument list, only the types of initial arguments that are provided are considered.
      • -Wpacked-not-aligned:
        Warn if a structure field with explicitly specified alignment in a packed struct or union is misaligned.
    • Improved Debug Location Support
      Several new command line options have been added to enable the generation of better debugging information:
      • -gas-loc-support:
        Informs the compiler that the assembler supports .loc directives, and that it can use them to generate DWARF line number tables. This is generally desirable because assembler-generated line-number tables are a lot more compact than those the compiler can generate itself.
      • -gas-locview-support:
        Informs the compiler that the assembler supports view assignment and reset assertion checking in .loc directives. This results in even better assembler generated line number tables.
      • -gvariable-location-views:
        Will augment variable location lists with progressive view numbers implied from the line number table. This enables debug information consumers to inspect state at certain points of the program, even if no instructions associated with the corresponding source locations are present at that point.
      • -ginline-points:
        Will make the compiler generate extended debug information for inlined functions. Location view tracking markers are inserted at inlined entry points, so that address and view numbers can be computed and output in debug information.
    • New Sanitization Options
      • -fsanitize=pointer-compare:
        Enables the instrumentation of comparison operations when used with pointer operands.
      • -fsanitize=pointer-subtract:
        Enables the instrumentation of subtraction operations with pointer operands.
      • -fsanitize=pointer-overflow:
        Enables the instrumentation of addition operations with pointer operands.
      • -fsanitize=builtin:
        Enables the instrumentation of arguments to selected builtin functions.
      • -fsanitize-coverage=trace-cmp:
        Enables dataflow guided fuzzing code instrumentation.

    You might also want to check out Usability Improvements in GCC 8 by David Malcolm.

    That's all for now.  We will be back in the summer for more!

    Last updated: March 30, 2018

    Recent Posts

    • A day in the life of an NVIDIA H100 on Red Hat OpenShift 5

    • Migrate BuildConfigs to builds for Red Hat OpenShift with one plug-in install

    • Run Red Hat Enterprise Linux CoreOS on NVIDIA BlueField DPUs

    • Agent harness engineering: Separating model capabilities from enforcement

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    Red Hat Developers logo

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    Red Hat Developer

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility
    Ask AI