[Prev][Next][Index][Thread]

Re: Problems with RTLD



> From: Akram Hussein <mt@ritsec3.com.eg>
> Subject: Re: Problems with RTLD
> 
> The problem that you will find and the oskit guys must try to find that
> bug is that inside the rtld.c file there is 3 undefined refrences to:
> 
> trunc_page Line 504
> round_page        507
> round_page        510

Oops, sorry about the delay on this. Yes, along the way, an include file
got dropped out. Here is a tiny patch you can apply, which should take care
of the problem.

Index: freebsd/libc/include/i386/param.h
===================================================================
RCS file: /usr/lsrc/flux/CVS/oskit/freebsd/libc/include/i386/param.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -c -r1.3 -r1.4
*** param.h	1999/10/15 21:51:16	1.3
--- param.h	2000/02/24 16:50:05	1.4
***************
*** 74,80 ****
  #define ALIGNBYTES	(sizeof(int) - 1)
  #define ALIGN(p)	(((unsigned)(p) + ALIGNBYTES) & ~ALIGNBYTES)
  
! #ifndef OSKIT
  
  #define PAGE_SHIFT	12		/* LOG2(PAGE_SIZE) */
  #define PAGE_SIZE	(1<<PAGE_SHIFT)	/* bytes/page */
--- 74,82 ----
  #define ALIGNBYTES	(sizeof(int) - 1)
  #define ALIGN(p)	(((unsigned)(p) + ALIGNBYTES) & ~ALIGNBYTES)
  
! #ifdef OSKIT
! #include <oskit/page.h>
! #else
  
  #define PAGE_SHIFT	12		/* LOG2(PAGE_SIZE) */
  #define PAGE_SIZE	(1<<PAGE_SHIFT)	/* bytes/page */
***************
*** 85,91 ****
  #define PDRSHIFT	22		/* LOG2(NBPDR) */
  #define NBPDR		(1<<PDRSHIFT)	/* bytes/page dir */
  #define PDRMASK		(NBPDR-1)
! #endif /* !OSKIT */
  
  #define DEV_BSHIFT	9		/* log2(DEV_BSIZE) */
  #define DEV_BSIZE	(1<<DEV_BSHIFT)
--- 87,93 ----
  #define PDRSHIFT	22		/* LOG2(NBPDR) */
  #define NBPDR		(1<<PDRSHIFT)	/* bytes/page dir */
  #define PDRMASK		(NBPDR-1)
! #endif /* OSKIT */
  
  #define DEV_BSHIFT	9		/* log2(DEV_BSIZE) */
  #define DEV_BSIZE	(1<<DEV_BSHIFT)