ld: Add tests for .startof.SECNAME/.sizeof.SECNAME

* testsuite/ld-elf/sizeof.d: Renamed to ...
	* testsuite/ld-elf/sizeofa.d: This.  Updated.
	* testsuite/ld-elf/startof.d: Renamed to ...
	* testsuite/ld-elf/startofa.d: This.  Updated.
	* testsuite/ld-elf/sizeofb.d: New file.
	* testsuite/ld-elf/startofb.d: Likewise.
This commit is contained in:
H.J. Lu 2017-06-13 12:03:40 -07:00
parent cbd0eecf26
commit da614360f5
5 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-elf/sizeof.d: Renamed to ...
* testsuite/ld-elf/sizeofa.d: This. Updated.
* testsuite/ld-elf/startof.d: Renamed to ...
* testsuite/ld-elf/startofa.d: This. Updated.
* testsuite/ld-elf/sizeofb.d: New file.
* testsuite/ld-elf/startofb.d: Likewise.
2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
PR ld/20022

View File

@ -1,3 +1,4 @@
#source: sizeof.s
#ld: -Ur
#readelf: -sW

View File

@ -0,0 +1,13 @@
#source: sizeof.s
#ld: -shared
#readelf: -sW
#target: *-*-linux* *-*-gnu*
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 +LOCAL +DEFAULT +[0-9]+ +__stop_scnfoo
#...
+[0-9]+: 0+10 + +0 +NOTYPE +GLOBAL +DEFAULT +ABS +.sizeof.scnfoo
#pass

View File

@ -1,3 +1,4 @@
#source: startof.s
#ld: -Ur
#readelf: -sW

View File

@ -0,0 +1,13 @@
#source: startof.s
#ld: -shared
#readelf: -sW
#target: *-*-linux* *-*-gnu*
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]+ +.startof.scnfoo
#...
+[0-9]+: +[a-f0-9]+ +0 +NOTYPE +LOCAL +DEFAULT +[0-9]+ +__start_scnfoo
#pass