diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2002-08-15 05:19:32 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2002-08-15 05:19:32 +0000 |
commit | 43b1011811f4eb90d90691f227ab545e578c6dd4 (patch) | |
tree | c56a616773556bef2d35f9ab87ee942e9559c6cd /ld/testsuite | |
parent | 0485ddbcbc9e57f73e5557e6abe33fd84a335ad3 (diff) | |
download | gdb-43b1011811f4eb90d90691f227ab545e578c6dd4.zip gdb-43b1011811f4eb90d90691f227ab545e578c6dd4.tar.gz gdb-43b1011811f4eb90d90691f227ab545e578c6dd4.tar.bz2 |
* ld-cris/libdso-4.d, ld-cris/undef1.d: New test.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/libdso-4.d | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/undef1.d | 13 |
3 files changed, 28 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 9b97cb4..d7d2b66 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-08-15 Hans-Peter Nilsson <hp@axis.com> + + * ld-cris/libdso-4.d, ld-cris/undef1.d: New test. + 2002-08-13 H.J. Lu <hjl@gnu.org> * ld-elfvers/vers.exp: Add vers23c and vers23d. diff --git a/ld/testsuite/ld-cris/libdso-4.d b/ld/testsuite/ld-cris/libdso-4.d new file mode 100644 index 0000000..b94199c --- /dev/null +++ b/ld/testsuite/ld-cris/libdso-4.d @@ -0,0 +1,11 @@ +#source: dso-2.s +#as: --pic --no-underscore +#ld: --shared -m crislinux +#objdump: -T + +# DSO with an undef symbol "dsofn". See undef1.d. + +.*: file format elf32-cris +#... +0+ D \*UND\* 0+ dsofn + diff --git a/ld/testsuite/ld-cris/undef1.d b/ld/testsuite/ld-cris/undef1.d new file mode 100644 index 0000000..9eeeb67 --- /dev/null +++ b/ld/testsuite/ld-cris/undef1.d @@ -0,0 +1,13 @@ +#source: dso-1.s +#source: gotrel1.s --pic +#as: --no-underscore +#ld: -m crislinux tmpdir/libdso-4.so +#objdump: -T + +# The DSO used has an undef reference to the symbol "dsofn", which is +# supposed to cause the program to automatically export it as a dynamic +# symbol; no --export-dynamic is supposed to be needed. + +#... +[0-9a-f]+ g DF .text 00000000 dsofn +#pass |