Landing: 469a256c2e3a

Project / Subsystem

gcc / testsuite

Date

2026-07-23

Author

Rainer Orth

Commit

469a256c2e3a8888c2e7a65d3fa832baf457b1c9

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
testsuite
patch_id
commit_hash
469a256c2e3a8888c2e7a65d3fa832baf457b1c9
source_type
github
headline
testsuite: Provide gnu_retain effective target
tldr
Renames `R_flag_in_section` to `gnu_retain` for better clarity and integrates it into the `et-static` framework.
author
Rainer Orth
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • testsuite
  • elf
  • configuration
discussion_id_link
bugzilla_pr
date
2026-07-23T00:00:00.000Z

This commit renames the GCC testsuite effective target R_flag_in_section to gnu_retain. The original name was deemed a misnomer, not conveying the actual functionality related to the SHF_GNU_RETAIN section flag. The new gnu_retain effective target is implemented using the et-static framework and combines checks for HAVE_GAS_SHF_GNU_RETAIN and HAVE_INITFINI_ARRAY_SUPPORT. Existing tests using the old target have been updated.