section-match-1.t 447 B

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