From 539b151216c78ee9273e10b9119193108986369b Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Wed, 17 Dec 2008 02:15:34 +0000 Subject: * ld-cris/expalltst3, ld-cris/expdyn2.s, ld-cris/libdso-15.d: New tests. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-cris/expalltst3 | 1 + ld/testsuite/ld-cris/expdyn2.s | 21 +++++++++++++++++++++ ld/testsuite/ld-cris/libdso-15.d | 24 ++++++++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 ld/testsuite/ld-cris/expalltst3 create mode 100644 ld/testsuite/ld-cris/expdyn2.s create mode 100644 ld/testsuite/ld-cris/libdso-15.d diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 19b5ca2511..12200d9100 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-12-17 Hans-Peter Nilsson + + * ld-cris/expalltst3, ld-cris/expdyn2.s, ld-cris/libdso-15.d: New + tests. + 2008-12-15 Richard Earnshaw * ld-arm/vfp11-fix-scalar.d: Disassembly of VFP instructions now uses diff --git a/ld/testsuite/ld-cris/expalltst3 b/ld/testsuite/ld-cris/expalltst3 new file mode 100644 index 0000000000..4ab8d53354 --- /dev/null +++ b/ld/testsuite/ld-cris/expalltst3 @@ -0,0 +1 @@ +TST3 { global: *; }; diff --git a/ld/testsuite/ld-cris/expdyn2.s b/ld/testsuite/ld-cris/expdyn2.s new file mode 100644 index 0000000000..d184ebc91f --- /dev/null +++ b/ld/testsuite/ld-cris/expdyn2.s @@ -0,0 +1,21 @@ + .data + .global __expobj2 + .type __expobj2,@object + .size __expobj2,4 +__expobj2: + .dword 0 + .weak expobj2 + .set expobj2,__expobj2 + + .text + .global _start +_start: + nop + .global __expfn2 +__expfn2: + .type __expfn2,@function + nop +.Lfe1: + .size __expfn2,.Lfe1-__expfn2 + .weak expfn2 + .set expfn2,__expfn2 diff --git a/ld/testsuite/ld-cris/libdso-15.d b/ld/testsuite/ld-cris/libdso-15.d new file mode 100644 index 0000000000..ce57e97223 --- /dev/null +++ b/ld/testsuite/ld-cris/libdso-15.d @@ -0,0 +1,24 @@ +#source: expdyn2.s +#as: --pic --no-underscore --em=criself -I$srcdir/$subdir +#ld: --shared -m crislinux --version-script $srcdir/$subdir/expalltst3 +#objdump: -s -T + +# A DSO that has two versioned symbols, each with a weak alias. +# Each symbol is versioned. + +.*: file format elf32-cris + +DYNAMIC SYMBOL TABLE: +#... +0+2288 g[ ]+DO .data[ ]+0+4 TST3[ ]+__expobj2 +0+20a g[ ]+DF .text[ ]+0+2 TST3[ ]+__expfn2 +0+20a w[ ]+DF .text[ ]+0+2 TST3[ ]+expfn2 +0+2288 w[ ]+DO .data[ ]+0+4 TST3[ ]+expobj2 +#... +Contents of section .text: + 0208 0f050f05 .* +#... +Contents of section .got: + 227c 0c220000 00000000 00000000 .* +Contents of section .data: + 2288 00000000 .* -- cgit v1.2.1