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.
+2016-05-09 Alan Modra <amodra@gmail.com>
+
+ * 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.
+
2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/17550
2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/17550
.text TOTO :
{
x = ABSOLUTE(TOTO);
.text TOTO :
{
x = ABSOLUTE(TOTO);
- .sec1 ORIGIN (region1) : { *(*.sec1) } AT> region2
+ .sec1 ORIGIN (region1) : { *(.sec1) } AT> region2
fred = ORIGIN (region1) + LENGTH (region1);
fred = ORIGIN (region1) + LENGTH (region1);
- .sec2 : { *(*.sec2) } > region3 AT> region4
+ .sec2 : { *(.sec2) } > region3 AT> region4
- .sec3 0x5000 : { *(*.sec3) }
+ .sec3 0x5000 : { *(.sec3) }
- .sec4 : { *(*.sec4) } AT> region2
+ .sec4 : { *(.sec4) } AT> region2
.sec5 : { LONG(0x5555) } > region2
.sec5 : { LONG(0x5555) } > region2
{
/* .secA should collect all sections with a prefix of ".sec."
except for those with a prefix of ".sec..". */
{
/* .secA should collect all sections with a prefix of ".sec."
except for those with a prefix of ".sec..". */
- .secA : { *(*.sec.[^.]*) }
+ .secA : { *(.sec.[^.]*) }
/* .secB should be empty because .secA will have taken all of
the potential matches. */
/* .secB should be empty because .secA will have taken all of
the potential matches. */
- .secB : { *(*.sec.[!.]*) }
+ .secB : { *(.sec.[!.]*) }
/* .secC should match any sections with a ".sec.." prefix. */
/* .secC should match any sections with a ".sec.." prefix. */
/* Ignore anything else. */
/DISCARD/ : { *(*) }
/* Ignore anything else. */
/DISCARD/ : { *(*) }