From: Hans-Peter Nilsson Date: Thu, 15 Aug 2002 05:19:32 +0000 (+0000) Subject: * ld-cris/libdso-4.d, ld-cris/undef1.d: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43b1011811f4eb90d90691f227ab545e578c6dd4;p=binutils-gdb.git * ld-cris/libdso-4.d, ld-cris/undef1.d: New test. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 9b97cb4ef78..d7d2b665bbd 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-08-15 Hans-Peter Nilsson + + * ld-cris/libdso-4.d, ld-cris/undef1.d: New test. + 2002-08-13 H.J. Lu * 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 00000000000..b94199c7e6b --- /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 00000000000..9eeeb6729a5 --- /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