aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/startofb.d
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-06-13 12:03:40 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-06-13 12:03:40 -0700
commitda614360f520b84a9c87506eb0c880f7a056468b (patch)
treefc1aa2f273b820bc099a8caa3ba5deba2f0c2ef2 /ld/testsuite/ld-elf/startofb.d
parentcbd0eecf261c2447781f8c89b0d955ee66fae7e9 (diff)
downloadgdb-da614360f520b84a9c87506eb0c880f7a056468b.zip
gdb-da614360f520b84a9c87506eb0c880f7a056468b.tar.gz
gdb-da614360f520b84a9c87506eb0c880f7a056468b.tar.bz2
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.
Diffstat (limited to 'ld/testsuite/ld-elf/startofb.d')
-rw-r--r--ld/testsuite/ld-elf/startofb.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/startofb.d b/ld/testsuite/ld-elf/startofb.d
new file mode 100644
index 0000000..e03bd23
--- /dev/null
+++ b/ld/testsuite/ld-elf/startofb.d
@@ -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