29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
|
$OpenBSD: patch-dyn_load_c,v 1.1 2002/08/27 15:41:30 todd Exp $
|
||
|
--- dyn_load.c.orig Tue Jun 26 04:37:38 2001
|
||
|
+++ dyn_load.c Wed Jul 31 05:06:30 2002
|
||
|
@@ -53,6 +53,7 @@
|
||
|
!(defined(ALPHA) && defined(OSF1)) && \
|
||
|
!defined(HPUX) && !(defined(LINUX) && defined(__ELF__)) && \
|
||
|
!defined(RS6000) && !defined(SCO_ELF) && \
|
||
|
+ !(defined(OPENBSD) && defined(__ELF__)) && \
|
||
|
!(defined(NETBSD) && defined(__ELF__)) && !defined(HURD)
|
||
|
--> We only know how to find data segments of dynamic libraries for the
|
||
|
--> above. Additional SVR4 variants might not be too
|
||
|
@@ -243,6 +244,7 @@ void GC_register_dynamic_libraries()
|
||
|
# endif /* SUNOS */
|
||
|
|
||
|
#if defined(LINUX) && defined(__ELF__) || defined(SCO_ELF) || \
|
||
|
+ (defined(OPENBSD) && defined(__ELF__)) || \
|
||
|
(defined(NETBSD) && defined(__ELF__)) || defined(HURD)
|
||
|
|
||
|
|
||
|
@@ -424,7 +426,7 @@ static char *parse_map_entry(char *buf_p
|
||
|
* This code was derived from the Solaris/ELF support. Thanks to
|
||
|
* whatever kind soul wrote that. - Patrick Bridges */
|
||
|
|
||
|
-#if defined(NETBSD)
|
||
|
+#if defined(NETBSD) || defined(OPENBSD)
|
||
|
# include <sys/exec_elf.h>
|
||
|
#else
|
||
|
# include <elf.h>
|