diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2002-07-09 03:46:49 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2002-07-09 03:46:49 +0000 |
commit | 57a4c584135c2e34f82de89bf58ba76d20010ad5 (patch) | |
tree | d2ddac8e0609e2885085b32db000c7f8e0db5865 /ld | |
parent | c29ef4b56afabf84f23ef83addc297d5e9fa4fdd (diff) | |
download | gdb-57a4c584135c2e34f82de89bf58ba76d20010ad5.zip gdb-57a4c584135c2e34f82de89bf58ba76d20010ad5.tar.gz gdb-57a4c584135c2e34f82de89bf58ba76d20010ad5.tar.bz2 |
* ld-cris/libdso-3.d, ld-cris/dso-3.s, ld-cris/noglob1.s,
ld-cris/noglob1.d: New tests.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/dso-3.s | 20 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/libdso-3.d | 14 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/noglob1.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/noglob1.s | 4 |
5 files changed, 49 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index f29197f..15dc6f4 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2002-07-09 Hans-Peter Nilsson <hp@axis.com> + * ld-cris/libdso-3.d, ld-cris/dso-3.s, ld-cris/noglob1.s, + ld-cris/noglob1.d: New tests. + * ld-cris/libdso-1.d: Tweak for change in size of dynamic sections. 2002-07-03 Alan Modra <amodra@bigpond.net.au> diff --git a/ld/testsuite/ld-cris/dso-3.s b/ld/testsuite/ld-cris/dso-3.s new file mode 100644 index 0000000..6610504 --- /dev/null +++ b/ld/testsuite/ld-cris/dso-3.s @@ -0,0 +1,20 @@ +; The visibility definitions here override the default +; definitions in the object where the symbols are defined. We +; check STV_HIDDEN and STV_PROTECTED with function and object +; definition respectively. This is by no means a full coverage, +; just enough to be a test-case for the bug described in +; libdso-3.d. Use ld-elfvsb for general visibility tests. + + .hidden expobj + .protected expfn + + .text + .global globsym + .type globsym,@function +globsym: + move.d expfn:GOTOFF,$r3 + move.d expfn:PLTG,$r3 + move.d expfn:PLT,$r3 + move.d expobj:GOTOFF,$r3 +.Lfe1: + .size globsym,.Lfe1-globsym diff --git a/ld/testsuite/ld-cris/libdso-3.d b/ld/testsuite/ld-cris/libdso-3.d new file mode 100644 index 0000000..9111797 --- /dev/null +++ b/ld/testsuite/ld-cris/libdso-3.d @@ -0,0 +1,14 @@ +#source: expdyn1.s +#source: dso-3.s +#as: --pic --no-underscore +#ld: --shared -m crislinux +#objdump: -R + +# GOTOFF relocs against global symbols with non-default +# visibility got a linker error. (A non-default visibility is +# to be treated as a local definition for the reloc.) We also +# make sure we don't get unnecessary dynamic relocations. + +.*: file format elf32-cris + +DYNAMIC RELOCATION RECORDS \(none\) diff --git a/ld/testsuite/ld-cris/noglob1.d b/ld/testsuite/ld-cris/noglob1.d new file mode 100644 index 0000000..a07cef8 --- /dev/null +++ b/ld/testsuite/ld-cris/noglob1.d @@ -0,0 +1,8 @@ +#ld: +#objdump: -p + +# Check that we can link an object that doesn't have any global symbols; +# where elf_sym_hashes(bfd) is NULL. + +.*: file format elf32.*-cris +#pass diff --git a/ld/testsuite/ld-cris/noglob1.s b/ld/testsuite/ld-cris/noglob1.s new file mode 100644 index 0000000..62111bf --- /dev/null +++ b/ld/testsuite/ld-cris/noglob1.s @@ -0,0 +1,4 @@ +; See noglob1.d + .text +x: + move.d .,$r0 |