Subject: Re: RelCache (aka ELF prebinding) news
To: None <tech-userlevel@netbsd.org>
From: Bang Jun-Young <junyoung@netbsd.org>
List: current-users
Date: 12/04/2002 00:43:50
On Sun, Dec 01, 2002 at 02:28:20PM +0900, Bang Jun-Young wrote:
> Installation
> ************
> 
> First, you should patch the toolchain so that it put checksum section in
> executables and shared objects:
> 
> ftp://ftp.netbsd.org/pub/NetBSD/misc/junyoung/toolchain-20021201.diff
> 
> After installing it, now build prebind(1) and ld.elf_so(1):
> 
> ftp://ftp.netbsd.org/pub/NetBSD/misc/junyoung/ld.elf_so-relcache-20021201.tar.gz
> ftp://ftp.netbsd.org/pub/NetBSD/misc/junyoung/prebind-20021201.tar.gz
> 
> Note that prebind(1) should reside in /usr/sbin.
> 
> For those who don't want to make everything himself, I have uploaded
> compiled binaries as well:
> 
> ftp://ftp.netbsd.org/pub/NetBSD/misc/junyoung/relcache-20021201.tar.gz

I omitted a patch against /usr/src/sys/sys/exec_elf.h. Here it is:

Index: exec_elf.h
===================================================================
RCS file: /cvsroot/syssrc/sys/sys/exec_elf.h,v
retrieving revision 1.66
diff -u -r1.66 exec_elf.h
--- exec_elf.h	2002/11/27 13:47:15	1.66
+++ exec_elf.h	2002/12/03 15:42:19
@@ -328,6 +328,8 @@
 
 #define	PT_MIPS_REGINFO	0x70000000
 
+#define PT_NB_CKSUM	(PT_LOOS + 0x8ffffff)	/* NetBSD-specific checksum */
+
 /* p_flags */
 #define	PF_R		0x4	/* Segment is readable */
 #define	PF_W		0x2	/* Segment is writable */

Don't forget to 'make includes' after applying it.

Sorry for inconvenience,

Jun-Young

-- 
Bang Jun-Young <junyoung@netbsd.org>