GCC Newspaper
JULY 29, 2026
Date
/
Architectures
Components
Topics
News & Policy
build

Build system fixes Solaris clearcap.map installation.

Build system corrected to install Solaris clearcap.map with the right name, fixing -mclear-hwcap tests.

The GCC build system has been fixed to correctly install the Solaris clearcap.map linker map file. A previous change hardcoded the mapfile syntax, causing clearcap.map to be installed with an incorrect name. This correction ensures that tests exercising the -mclear-hwcap option on Solaris function properly.

In Details

Following commit 5f1256233b6a which hardcoded Solaris v2 mapfile syntax for the Solaris linker, the installation rule for clearcap.map in t-sol2 was incorrect. This commit corrects the installation target to ensure clearcap.map is installed using its proper name, rather than a potentially modified or incorrectly prefixed name. This fix is specifically relevant for testing the -mclear-hwcap option on Solaris systems.

For Context
build system
The set of tools and scripts used to compile source code into an executable program or library.
linker map file
A file generated by the linker that describes the memory layout of the output executable, including section addresses and symbols.
clearcap.map
A specific linker map file used on Solaris systems to manage hardware capabilities relevant to the clearheap capability.
-mclear-hwcap
A compiler or linker option used on Solaris systems to explicitly clear hardware capability bits, affecting runtime behavior.
Solaris
A Unix operating system developed by Sun Microsystems (now Oracle).
Filed Under: buildSolarislinkertestsuite