Add a testcase for PR ld/14052

PR ld/14052
	* ld-elf/pr14052.d: New file.
	* ld-elf/pr14052.t: Likewise.
This commit is contained in:
H.J. Lu 2012-05-05 14:15:21 +00:00
parent 1067f99890
commit 18269b0999
3 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2012-05-05 H.J. Lu <hongjiu.lu@intel.com>
PR ld/14052
* ld-elf/pr14052.d: New file.
* ld-elf/pr14052.t: Likewise.
2012-05-05 Alan Modra <amodra@gmail.com>
PR ld/14052

View File

@ -0,0 +1,8 @@
#source: start.s
#ld: -T pr14052.t
#readelf: -s
#failif
#...
+[0-9]+: +[0-9a-f]+ +0 +(OBJECT|NOTYPE) +GLOBAL +DEFAULT +ABS _data_start
#...

View File

@ -0,0 +1,11 @@
SECTIONS {
.text : {
*(.text)
}
. = ALIGN (0x1000);
.data : {
_data_start = .;
*(.data)
}
/DISCARD/ : { *(.*) }
}