This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


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

glibc/Hurd: dynamic linker RPC stub


Hi all

This is also part of my changes to get the Hurd dynamic linker
working.  There is a small problem, this might be compiled before the
normal Hurd RPC stubs are generated, which doesn't work of course.
For now the solution is to run make again.  I'll try to find a better
solution, but the Makefiles are just too complex ...

Mark


1998-07-05  Mark Kettenis  <kettenis@phys.uva.nl>

	* sysdeps/mach/hurd/RPC_dl_io_write.c: New file.
	* sysdeps/mach/hurd/Makefile: Make $(objpxf)librtld.os depend on
	$(objpfx)RPC_dl_io_write.os.


Index: sysdeps/mach/hurd/Makefile
--- 0.28/sysdeps/mach/hurd/Makefile Wed, 03 Jun 1998 22:17:33 +0200 kettenis (libc/9_Makefile 1.1.1.1 640)
+++ local.47(w)/sysdeps/mach/hurd/Makefile Sun, 05 Jul 1998 21:34:34 +0200 kettenis (libc/9_Makefile 1.1.1.1 640)
@@ -123,6 +123,7 @@
 # linker, too.  It must be self-contained, so we link the needed PIC
 # objects directly into the shared object.
 ifeq (elf,$(subdir))
+$(objpfx)librtld.os: $(objpfx)RPC_dl_io_write.os
 $(objpfx)librtld.os: $(rpcuserlibs:.so=_pic.a)
 endif
 
Index: sysdeps/mach/hurd/RPC_dl_io_write.c
--- libc/sysdeps/mach/hurd/RPC_dl_io_write.c Sun, 05 Jul 1998 21:38:25 +0200 kettenis ()
+++ libc/sysdeps/mach/hurd/RPC_dl_io_write.c Sun, 05 Jul 1998 16:28:10 +0200 kettenis (libc/g/31_RPC_dl_io_  644)
@@ -0,0 +1,26 @@
+/* Special io_write RPC stub for dynamic linker.
+   Copyright (C) 1998 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+/* For writing debug messages between starting the relocation of the
+   dynamic linker and calling the initializer, we need a io_write RPC
+   stub that calls __mach_msg instead of _hurd_intr_rpc_mach_msg.  */
+
+#define _hurd_intr_rpc_mach_msg __mach_msg
+
+#include <hurd/RPC_io_write.c>




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