This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [m68k] Correct ISAC support
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>, binutils at sources dot redhat dot com, Ben Elliston <bje at au1 dot ibm dot com>, richard at codesourcery dot com
- Date: Fri, 27 Apr 2007 17:26:10 +0100
- Subject: Re: [m68k] Correct ISAC support
- References: <4628F5FA.9010900@codesourcery.com> <87vefl6fk1.fsf@firetop.home>
Richard Sandiford wrote:
Nathan Sidwell <nathan@codesourcery.com> writes:
* elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry,
elf_isac_plt_entry, elf_isac_plt_info): New.
Please add a test for this new PLT layout. C.f. ld-m68k/plt1-68020.d,
ld-m68k/plt1-isab.d, etc.
Done with this patch. Installed as obvious.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
2007-04-27 Nathan Sidwell <nathan@codesourcery.com>
* ld-m68k/plt1-isac.d: New.
* ld-m68k/m68k.exp: Add it.
Index: ld-m68k/m68k.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-m68k/m68k.exp,v
retrieving revision 1.4
diff -c -3 -p -r1.4 m68k.exp
*** ld-m68k/m68k.exp 12 Jul 2006 12:47:00 -0000 1.4
--- ld-m68k/m68k.exp 27 Apr 2007 16:23:19 -0000
*************** run_dump_test "merge-ok-1b"
*** 56,62 ****
run_dump_test "merge-ok-1c"
foreach { id sources } { a { plt1.s } b { plt1-empty.s plt1.s } } {
! foreach arch { 68020 cpu32 isab } {
run_ld_link_tests [list \
[list "PLT 1$id ($arch)" "-shared -T plt1.ld" "-m$arch" \
$sources [list [list objdump -dr plt1-$arch.d]] \
--- 56,62 ----
run_dump_test "merge-ok-1c"
foreach { id sources } { a { plt1.s } b { plt1-empty.s plt1.s } } {
! foreach arch { 68020 cpu32 isab isac } {
run_ld_link_tests [list \
[list "PLT 1$id ($arch)" "-shared -T plt1.ld" "-m$arch" \
$sources [list [list objdump -dr plt1-$arch.d]] \
Index: ld-m68k/plt1-isac.d
===================================================================
RCS file: ld-m68k/plt1-isac.d
diff -N ld-m68k/plt1-isac.d
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- ld-m68k/plt1-isac.d 27 Apr 2007 16:23:19 -0000
***************
*** 0 ****
--- 1,44 ----
+
+ .*: file format elf32-m68k
+
+ Disassembly of section \.plt:
+
+ 00020800 <f.@plt-0x18>:
+ # _GLOBAL_OFFSET_TABLE_ + 4 == 0x30404 == 0x20802 + 0xfc02
+ 20800: 203c 0000 fc02 movel #64514,%d0
+ 20806: 2ebb 08fa movel %pc@\(20802 <f.@plt-0x16>,%d0:l\),%sp@
+ # _GLOBAL_OFFSET_TABLE_ + 8 == 0x30408 == 0x2080c + 0xfbfc
+ 2080a: 203c 0000 fbfc movel #64508,%d0
+ 20810: 207b 08fa moveal %pc@\(2080c <f.@plt-0xc>,%d0:l\),%a0
+ 20814: 4ed0 jmp %a0@
+ 20816: 4e71 nop
+
+ 00020818 <f.@plt>:
+ # _GLOBAL_OFFSET_TABLE_ + 12 == 0x3040c == 0x2081a + 0xfbf2
+ 20818: 203c 0000 fbf2 movel #64498,%d0
+ 2081e: 207b 08fa moveal %pc@\(2081a <f.@plt\+0x2>,%d0:l\),%a0
+ 20822: 4ed0 jmp %a0@
+ 20824: 2f3c 0000 0000 movel #0,%sp@-
+ 2082a: 61ff ffff ffd4 bsrl 20800 <f.@plt-0x18>
+
+ 00020830 <f.@plt>:
+ # _GLOBAL_OFFSET_TABLE_ + 16 == 0x30410 == 0x20832 + 0xfbde
+ 20830: 203c 0000 fbde movel #64478,%d0
+ 20836: 207b 08fa moveal %pc@\(20832 <f.@plt\+0x2>,%d0:l\),%a0
+ 2083a: 4ed0 jmp %a0@
+ 2083c: 2f3c 0000 000c movel #12,%sp@-
+ 20842: 61ff ffff ffbc bsrl 20800 <f.@plt-0x18>
+
+ 00020848 <f.@plt>:
+ # _GLOBAL_OFFSET_TABLE_ + 20 == 0x30414 == 0x2084a + 0xfbca
+ 20848: 203c 0000 fbca movel #64458,%d0
+ 2084e: 207b 08fa moveal %pc@\(2084a <f.@plt\+0x2>,%d0:l\),%a0
+ 20852: 4ed0 jmp %a0@
+ 20854: 2f3c 0000 0018 movel #24,%sp@-
+ 2085a: 61ff ffff ffa4 bsrl 20800 <f.@plt-0x18>
+ Disassembly of section \.text:
+
+ 00020c00 <.*>:
+ 20c00: 61ff ffff fc.. bsrl 208.. <f1@plt>
+ 20c06: 61ff ffff fc.. bsrl 208.. <f2@plt>
+ 20c0c: 61ff ffff fc.. bsrl 208.. <f3@plt>