[m-dev.] os_dep.c

Fergus Henderson fjh at cs.mu.oz.au
Sat Aug 9 06:10:33 AEST 1997


Tyson Richard DOWD, you wrote:
> 
> I don't think there's an easy solution to this just yet, so perhaps
> we could supply a patch for use with glibc 2.

That seems like the best approach.

Index: README.Linux
===================================================================
RCS file: /home/staff/zs/imp/mercury/README.Linux,v
retrieving revision 1.2
diff -u -r1.2 README.Linux
--- README.Linux	1997/02/10 17:04:02	1.2
+++ README.Linux	1997/08/08 20:09:14
@@ -7,6 +7,9 @@
 wrongly assume your Linux system uses ELF; if that happens, you will you
 have to manually edit the EXT_FOR_SHARED_LIB variable in Mmake.common.
 
+If you are using libc6, then you need to apply the patch listed at
+the end of this file.  Just type `patch boehm_gc/os_dep.c < README.Linux'.
+
 On Linux with ELF, shared libraries are supported.  However, ELF shared
 libraries require position-independent code, and (partly due to
 limitations in our current compilation technology, but partly due to
@@ -39,3 +42,23 @@
 offset table pointer register in PIC code.  If only the Intel
 architecture wasn't so register-starved, we wouldn't need to use `ebx',
 and then PIC and non-PIC code could be mixed without any problems.)
+
+--------------------
+
+diff -u -r1.9 os_dep.c
+--- os_dep.c    1997/03/06 02:51:19     1.9
++++ os_dep.c    1997/08/07 14:14:26
+@@ -23,9 +23,11 @@
+     /* for some early 1.3.X releases.  Will hopefully go away soon.  */
+     /* in some later Linux releases, asm/sigcontext.h may have to */
+     /* be included instead.  */
++# if 0
+ #   define __KERNEL__
+ #   include <asm/signal.h>
+ #   undef __KERNEL__
++# endif
+ # endif
+ # if !defined(OS2) && !defined(PCR) && !defined(AMIGA) &&
+!defined(MACOS)
+ #   include <sys/types.h>
+
-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list