about summary refs log tree commit diff
path: root/sysdeps/ia64
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-10 23:47:39 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-10 23:47:39 +0000
commitb1eab230118c7d65223927486afb7fe0b531bf33 (patch)
tree51c458add3ac839f3b4fd09e3d9ced303536cdf4 /sysdeps/ia64
parent963100c9f9f079aac1cd891255d0eec5230052ae (diff)
downloadglibc-b1eab230118c7d65223927486afb7fe0b531bf33.tar.gz
glibc-b1eab230118c7d65223927486afb7fe0b531bf33.tar.xz
glibc-b1eab230118c7d65223927486afb7fe0b531bf33.zip
Update.
	* sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Also preserve
	r9, r10 and r11 for language specific registers.

2001-01-10  Jakub Jelinek  <jakub@redhat.com>

	* sunrpc/clnt_udp.c (clntudp_bufcreate): Set IP_RECVERR on the
	UDP socket.
	(clntudp_call): Handle MSG_ERRQUEUE.
	* sysdeps/generic/errqueue.h: New file.
	* sysdeps/unix/sysv/linux/errqueue.h: New file.

2001-01-10  H.J. Lu  <hjl@gnu.org>
Diffstat (limited to 'sysdeps/ia64')
-rw-r--r--sysdeps/ia64/dl-machine.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sysdeps/ia64/dl-machine.h b/sysdeps/ia64/dl-machine.h
index 0b0352083c..17e77084d8 100644
--- a/sysdeps/ia64/dl-machine.h
+++ b/sysdeps/ia64/dl-machine.h
@@ -163,7 +163,7 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
 	.proc " #tramp_name "#
 " #tramp_name ":
 	{ .mmi
-	  alloc loc0 = ar.pfs, 8, 3, 3, 0
+	  alloc loc0 = ar.pfs, 8, 6, 3, 0
 	  adds r2 = -144, r12
 	  adds r3 = -128, r12
 	}
@@ -178,6 +178,11 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
 	  nop.f 0
 	  nop.b 0
 	}
+	{ .mii
+	  mov loc3 = r9		/* preserve language specific register */
+	  mov loc4 = r10	/* preserve language specific register */
+	  mov loc5 = r11	/* preserve language specific register */
+	}
 	{ .mmi
 	  stf.spill [r2] = f8, 32
 	  stf.spill [r3] = f9, 32
@@ -232,6 +237,11 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
 	  ;;
 	}
 	{ .mii
+	  mov r9 = loc3		/* restore language specific register */
+	  mov r10 = loc4	/* restore language specific register */
+	  mov r11 = loc5	/* restore language specific register */
+	}
+	{ .mii
 	  ld8 gp = [ret0]
 	  mov r8 = loc2		/* restore struct value register */
 	  ;;