From a84d6b933e5601f2037d770458ebfea1d3d36a15 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 20 May 2004 22:07:15 +0000 Subject: 2004-05-15 Chris Demetriou * 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 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/mips/dl-machine.h b/sysdeps/mips/dl-machine.h index aff843d01d..c8397b2f33 100644 --- a/sysdeps/mips/dl-machine.h +++ b/sysdeps/mips/dl-machine.h @@ -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) -- cgit v1.2.3