Landing: 6e7b6dae6fa4

Project / Subsystem

gcc / testsuite

Date

2026-04-27

Author

Muhammad Kamran

Commit

6e7b6dae6fa40fd98643bf1ac2f181baf1f4b741

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
testsuite
patch_id
commit_hash
6e7b6dae6fa40fd98643bf1ac2f181baf1f4b741
source_type
github
headline
Testsuite Extended object-readelf to accept regexes.
tldr
The testsuite's object-readelf function now supports regular expressions for more flexible checks of object file metadata.
author
Muhammad Kamran
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • testsuite
  • lto
  • readelf
  • regular expressions
discussion_id_link
bugzilla_pr
date
2026-04-27T00:00:00.000Z

The object-readelf function in lib/lto.exp was extended to support regular expressions. Previously, it was limited to attribute checks using readelf -A. Now, it accepts a readelf option and a regex, matching the regex against the full readelf output. This allows for more flexible and comprehensive checks of object file metadata in LTO tests, including checks for notes and negative checks to ensure that a regex is not present in the output.