mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
cc969da947
We don't want this to match .rela.text or similar. * testsuite/ld-scripts/pr14962-2.t: Match .text, not *.text. * testsuite/ld-scripts/rgn-at5.t: Similarly, .sec not *.sec. * testsuite/ld-scripts/section-match-1.t: Likewise.
17 lines
447 B
Raku
17 lines
447 B
Raku
SECTIONS
|
|
{
|
|
/* .secA should collect all sections with a prefix of ".sec."
|
|
except for those with a prefix of ".sec..". */
|
|
.secA : { *(.sec.[^.]*) }
|
|
|
|
/* .secB should be empty because .secA will have taken all of
|
|
the potential matches. */
|
|
.secB : { *(.sec.[!.]*) }
|
|
|
|
/* .secC should match any sections with a ".sec.." prefix. */
|
|
.secC : { *(.sec.*) }
|
|
|
|
/* Ignore anything else. */
|
|
/DISCARD/ : { *(*) }
|
|
}
|