microblaze-linux XPASS ld-elf/var1

microblaze-linux uses the standard ELF script, microblaze-elf its own
script lacking an input section pattern needed to make this test pass.
Add the missing pattern for .data, in line with most other sections
that do have .* patterns.

	* scripttempl/elfmicroblaze.sc (.data): Add .data.* entry.
	* testsuite/ld-elf/var1.d: Don't xfail microblaze.
This commit is contained in:
Alan Modra 2020-06-30 13:22:52 +09:30
parent 08ccfccf0e
commit 39d050ee50
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2020-06-30 Alan Modra <amodra@gmail.com>
* scripttempl/elfmicroblaze.sc (.data): Add .data.* entry.
* testsuite/ld-elf/var1.d: Don't xfail microblaze.
2020-06-29 H.J. Lu <hongjiu.lu@intel.com> 2020-06-29 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-tic6x/shlib-1.rd: Move C6000_DSBT_BASE, * testsuite/ld-tic6x/shlib-1.rd: Move C6000_DSBT_BASE,

View File

@ -136,6 +136,7 @@ SECTIONS
${RELOCATING+ _fdata = .;} ${RELOCATING+ _fdata = .;}
.data : { .data : {
*(.data) *(.data)
${RELOCATING+*(.data.*)}
${RELOCATING+*(.gnu.linkonce.d.*)} ${RELOCATING+*(.gnu.linkonce.d.*)}
${CONSTRUCTING+CONSTRUCTORS;} /* Is this needed? */ ${CONSTRUCTING+CONSTRUCTORS;} /* Is this needed? */
} }

View File

@ -1,6 +1,6 @@
#ld: $srcdir/$subdir/var1.t --sort-section name #ld: $srcdir/$subdir/var1.t --sort-section name
#nm: -n #nm: -n
#xfail: d30v-*-* dlx-*-* ft32-*-* microblaze-*-* #xfail: d30v-*-* dlx-*-* ft32-*-*
#... #...
[0-9a-f]* D var1 [0-9a-f]* D var1