This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] for elf32-m68k cpu32 plt entries committed


I committed the following patch to fix up the instruction encoding
for cpu32 plt entries.

1999-11-19  Catherine Moore  <clm@cygnus.com>

        * elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding.
        (elf_cpu32_plt_entry): Likewise.

Index: elf32-m68k.c
===================================================================
RCS file: /cvs/binutils/binutils/bfd/elf32-m68k.c,v
retrieving revision 1.8
diff -p -r1.8 elf32-m68k.c
*** elf32-m68k.c	1999/09/16 18:25:09	1.8
--- elf32-m68k.c	1999/11/19 15:38:30
*************** static const bfd_byte elf_m68k_plt_entry
*** 224,232 ****
  /* Procedure linkage table entries for the cpu32 */
  static const bfd_byte elf_cpu32_plt0_entry[PLT_CPU32_ENTRY_SIZE] =
  {
!   0x21, 0x7b, 0x01, 0x70, /* moveal %pc@(0xc), %a0 */
    0, 0, 0, 0,             /* replaced with offset to .got + 4.  */
!   0x4e, 0xd1,             /* jmp %a0@ */
    0, 0, 0, 0,             /* replace with offset to .got +8. */
    0, 0, 0, 0,             /* pad out to 24 bytes.  */
    0, 0, 0, 0,             /* pad out to 24 bytes.  */
--- 224,232 ----
  /* Procedure linkage table entries for the cpu32 */
  static const bfd_byte elf_cpu32_plt0_entry[PLT_CPU32_ENTRY_SIZE] =
  {
!   0x22, 0x7b, 0x01, 0x70, /* moveal %pc@(0xc), %a1 */
    0, 0, 0, 0,             /* replaced with offset to .got + 4.  */
!   0x4e, 0xd1,             /* jmp %a1@ */
    0, 0, 0, 0,             /* replace with offset to .got +8. */
    0, 0, 0, 0,             /* pad out to 24 bytes.  */
    0, 0, 0, 0,             /* pad out to 24 bytes.  */
*************** static const bfd_byte elf_cpu32_plt0_ent
*** 235,243 ****
  
  static const bfd_byte elf_cpu32_plt_entry[PLT_CPU32_ENTRY_SIZE] =
  {
!   0x21, 0x7b, 0x01, 0x70,  /* moveal %pc@(0xc), %a0 */
    0, 0, 0, 0,              /* replaced with offset to symbol's .got entry.  */
!   0x4e, 0xd1,              /* jmp %a0@ */
    0x2f, 0x3c,              /* move.l #offset,-(%sp) */
    0, 0, 0, 0,              /* replaced with offset into relocation table.  */
    0x60, 0xff,              /* bra.l .plt */
--- 235,243 ----
  
  static const bfd_byte elf_cpu32_plt_entry[PLT_CPU32_ENTRY_SIZE] =
  {
!   0x22, 0x7b, 0x01, 0x70,  /* moveal %pc@(0xc), %a1 */
    0, 0, 0, 0,              /* replaced with offset to symbol's .got entry.  */
!   0x4e, 0xd1,              /* jmp %a1@ */
    0x2f, 0x3c,              /* move.l #offset,-(%sp) */
    0, 0, 0, 0,              /* replaced with offset into relocation table.  */
    0x60, 0xff,              /* bra.l .plt */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]