diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr19789.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr19789.s | 9 |
3 files changed, 25 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 73f67b0..8776e4c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,11 @@ 2016-03-08 H.J. Lu <hongjiu.lu@intel.com> + PR ld/19789 + * testsuite/ld-elf/pr19789.d: New file. + * testsuite/ld-elf/pr19789.s: Likewise. + +2016-03-08 H.J. Lu <hongjiu.lu@intel.com> + PR ld/19784 * testsuite/ld-i386/i386.exp: Remove pr19636-2e-nacl test. * testsuite/ld-i386/pr19636-2e-nacl.d: Moved to ... diff --git a/ld/testsuite/ld-elf/pr19789.d b/ld/testsuite/ld-elf/pr19789.d new file mode 100644 index 0000000..e7cc6c5 --- /dev/null +++ b/ld/testsuite/ld-elf/pr19789.d @@ -0,0 +1,10 @@ +#ld: -r -E +#readelf: -s --wide +#target: *-*-linux* *-*-gnu* *-*-solaris* + +Symbol table '\.symtab' contains [0-9]+ entries: +#... + +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ +foo@@VERS.2 +#... + +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ +foo@VERS.1 +#pass diff --git a/ld/testsuite/ld-elf/pr19789.s b/ld/testsuite/ld-elf/pr19789.s new file mode 100644 index 0000000..31be1b0 --- /dev/null +++ b/ld/testsuite/ld-elf/pr19789.s @@ -0,0 +1,9 @@ + .text + .globl __foo + .type __foo, %function +__foo: + .byte 0 + .globl __foo1 + .set __foo1, __foo + .symver __foo,foo@@VERS.2 + .symver __foo1,foo@VERS.1 |