+2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/21384
+ * testsuite/ld-elf/pr21384.d: New file.
+ * testsuite/ld-elf/pr21384.dl: Likewise.
+ * testsuite/ld-elf/pr21384.ld: Likewise.
+ * testsuite/ld-elf/pr21384.s: Likewise.
+
2017-05-01 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-i386/tls.exp: Run GNU2 TLS tests only if there
--- /dev/null
+#ld: -T pr21384.ld --dynamic-list $srcdir/$subdir/pr21384.dl --no-dynamic-linker
+#readelf : --dyn-syms --wide
+#target: *-*-linux* *-*-gnu* *-*-solaris*
+
+Symbol table '\.dynsym' contains [0-9]+ entries:
+ +Num: +Value +Size Type +Bind +Vis +Ndx Name
+ +0: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND +
+#...
+ +[0-9]+: +[a-f0-9]+ +0 +NOTYPE +GLOBAL +DEFAULT +[0-9]+ +edata
+ +[0-9]+: +[a-f0-9]+ +0 +NOTYPE +GLOBAL +DEFAULT +[0-9]+ +fdata
+#pass
--- /dev/null
+{
+ fdata;
+ edata;
+};
--- /dev/null
+SECTIONS
+{
+ .data :
+ {
+ fdata = .;
+ *(.data)
+ edata = .;
+ }
+ .dynamic : { *(.dynamic) }
+ .hash : { *(.hash) }
+ .dynsym : { *(.dynsym) }
+ .dynstr : { *(.dynstr) }
+ .gnu.version : { *(.gnu.version) }
+ .gnu.version_d : { *(.gnu.version_d) }
+ .shstrtab : { *(.shstrtab) }
+ .symtab : { *(.symtab) }
+ .strtab : { *(.strtab) }
+ .plt : { *(.plt) }
+ .got.plt : { *(.got.plt) }
+ .got : { *(.got) }
+ /DISCARD/ : { *(*) }
+}
--- /dev/null
+ .data
+ .byte 0