2004-05-15 Chris Demetriou <cgd@broadcom.com>
authorRoland McGrath <roland@gnu.org>
Thu, 20 May 2004 22:07:15 +0000 (22:07 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 20 May 2004 22:07:15 +0000 (22:07 +0000)
* sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
(ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).

sysdeps/mips/dl-machine.h

index aff843d..c8397b2 100644 (file)
@@ -281,26 +281,30 @@ elf_machine_runtime_link_map (ElfW(Addr) gpreg, ElfW(Addr) stub_pc)
 
 #else /* _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM == _MIPS_SIM_ABI64 */
 
-#define ELF_DL_FRAME_SIZE 64
+#define ELF_DL_FRAME_SIZE 80
 
 #define ELF_DL_SAVE_ARG_REGS "\
-       sd      $15, 56($29)\n                                                \
+       sd      $15, 72($29)\n                                                \
        sd      $4, 8($29)\n                                                  \
        sd      $5, 16($29)\n                                                 \
        sd      $6, 24($29)\n                                                 \
        sd      $7, 32($29)\n                                                 \
        sd      $8, 40($29)\n                                                 \
        sd      $9, 48($29)\n                                                 \
+       sd      $10, 56($29)\n                                                \
+       sd      $11, 64($29)\n                                                \
 "
 
 #define ELF_DL_RESTORE_ARG_REGS "\
-       ld      $31, 56($29)\n                                                \
+       ld      $31, 72($29)\n                                                \
        ld      $4, 8($29)\n                                                  \
        ld      $5, 16($29)\n                                                 \
        ld      $6, 24($29)\n                                                 \
        ld      $7, 32($29)\n                                                 \
        ld      $8, 40($29)\n                                                 \
        ld      $9, 48($29)\n                                                 \
+       ld      $10, 56($29)\n                                                \
+       ld      $11, 64($29)\n                                                \
 "
 
 #define IFABIO32(X)