Commit | Line | Data |
---|---|---|
b97b635e NC |
1 | SECTIONS |
2 | { | |
3 | /* .secA should collect all sections with a prefix of ".sec." | |
4 | except for those with a prefix of ".sec..". */ | |
cc969da9 | 5 | .secA : { *(.sec.[^.]*) } |
b97b635e NC |
6 | |
7 | /* .secB should be empty because .secA will have taken all of | |
8 | the potential matches. */ | |
cc969da9 | 9 | .secB : { *(.sec.[!.]*) } |
b97b635e NC |
10 | |
11 | /* .secC should match any sections with a ".sec.." prefix. */ | |
cc969da9 | 12 | .secC : { *(.sec.*) } |
b97b635e NC |
13 | |
14 | /* Ignore anything else. */ | |
15 | /DISCARD/ : { *(*) } | |
16 | } |