From 1e22530edfcc373b77128611be3ea38fc4f95d29 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Thu, 29 Oct 2009 11:50:57 +0000 Subject: [PATCH] * ld-cris/dso12-pltdis.d: New test. --- ld/testsuite/ChangeLog | 4 +++ ld/testsuite/ld-cris/dso12-pltdis.d | 54 +++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 ld/testsuite/ld-cris/dso12-pltdis.d diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 3fed32e..28829c6 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-10-28 Johan Kristell + + * ld-cris/dso12-pltdis.d: New test. + 2009-10-19 Hans-Peter Nilsson * ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-22.d, diff --git a/ld/testsuite/ld-cris/dso12-pltdis.d b/ld/testsuite/ld-cris/dso12-pltdis.d new file mode 100644 index 0000000..71a1748 --- /dev/null +++ b/ld/testsuite/ld-cris/dso12-pltdis.d @@ -0,0 +1,54 @@ +#source: expdyn1.s +#source: dsov32-1.s +#source: dsov32-2.s +#as: --pic --no-underscore --march=v32 --em=criself +#ld: --shared -m crislinux -z nocombreloc +#objdump: -d + +# Check dissassembly of .plt section. + +.*: file format elf32-cris + +Disassembly of section \.plt: + +0+1e4 : + + 1e4: 84e2 subq 4,\$sp + 1e6: 0401 addoq 4,\$r0,\$acr + 1e8: 7e7a move \$mof,\[\$sp\] + 1ea: 3f7a move \[\$acr\],\$mof + 1ec: 04f2 addq 4,\$acr + 1ee: 6ffa move\.d \[\$acr\],\$acr + 1f0: bf09 jump \$acr + 1f2: b005 nop + \.\.\. + +0+1fe : + 1fe: 6f0d 0c00 0000 addo\.d c ,\$r0,\$acr + 204: 6ffa move\.d \[\$acr\],\$acr + 206: bf09 jump \$acr + 208: b005 nop + 20a: 3f7e 0000 0000 move 0 ,\$mof + 210: bf0e d4ff ffff ba 1e4 + 216: b005 nop + +0+218 : + 218: 6f0d 1000 0000 addo\.d 10 ,\$r0,\$acr + 21e: 6ffa move\.d \[\$acr\],\$acr + 220: bf09 jump \$acr + 222: b005 nop + 224: 3f7e 0c00 0000 move c ,\$mof + 22a: bf0e baff ffff ba 1e4 + 230: b005 nop + +Disassembly of section \.text: +#... +0+236 : + 236: bfbe e2ff ffff bsr 218 + 23c: b005 nop + +0+23e : + 23e: 7f0d a620 0000 lapc 22e4 <_GLOBAL_OFFSET_TABLE_>,\$r0 + 244: 5f0d 1400 addo\.w 0x14,\$r0,\$acr + 248: bfbe b6ff ffff bsr 1fe +#pass -- 2.7.4