diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-06-13 12:03:40 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-06-13 12:03:40 -0700 |
commit | da614360f520b84a9c87506eb0c880f7a056468b (patch) | |
tree | fc1aa2f273b820bc099a8caa3ba5deba2f0c2ef2 /ld | |
parent | cbd0eecf261c2447781f8c89b0d955ee66fae7e9 (diff) | |
download | gdb-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')
-rw-r--r-- | ld/ChangeLog | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/sizeofa.d (renamed from ld/testsuite/ld-elf/sizeof.d) | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/sizeofb.d | 13 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/startofa.d (renamed from ld/testsuite/ld-elf/startof.d) | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/startofb.d | 13 |
5 files changed, 37 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index dcfc602..59c99ae 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,14 @@ 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 PR ld/21557 PR ld/21562 diff --git a/ld/testsuite/ld-elf/sizeof.d b/ld/testsuite/ld-elf/sizeofa.d index 7cad75a..0aac607 100644 --- a/ld/testsuite/ld-elf/sizeof.d +++ b/ld/testsuite/ld-elf/sizeofa.d @@ -1,3 +1,4 @@ +#source: sizeof.s #ld: -Ur #readelf: -sW diff --git a/ld/testsuite/ld-elf/sizeofb.d b/ld/testsuite/ld-elf/sizeofb.d new file mode 100644 index 0000000..331c386 --- /dev/null +++ b/ld/testsuite/ld-elf/sizeofb.d @@ -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 diff --git a/ld/testsuite/ld-elf/startof.d b/ld/testsuite/ld-elf/startofa.d index cf1f064..00ab27e 100644 --- a/ld/testsuite/ld-elf/startof.d +++ b/ld/testsuite/ld-elf/startofa.d @@ -1,3 +1,4 @@ +#source: startof.s #ld: -Ur #readelf: -sW 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 |