This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Dependecy on __ELF__
- To: libc-hacker@cygnus.com
- Subject: Dependecy on __ELF__
- From: Mark Kettenis <kettenis@phys.uva.nl>
- Date: Fri, 23 Oct 1998 23:06:04 +0200 (CEST)
Hi,
My Linux to Hurd cross-compiler doesn't define __ELF__ (and I think a
native Hurd gcc doesn't either), although nowadays the Hurd is
completely ELF based. Of course this should be fixed, and I'll file a
bug report to the gcc & egcs folks. But I think checking for HAVE_ELF
is more reliable. The following patch does this for
`include/ldsodefs.h'. I noticed that `sysdeps/i386/asm-syntax.h' also
checks for __ELF__ should/can this be changed too?
Mark
1998-10-23 Mark Kettenis <kettenis@phys.uva.nl>
* include/ldsodefs.h: Check for HAVE_ELF instead of __ELF__ to
include <elf/ldsodefs.h>. At least on the Hurd, __ELF__ isn't
defined although it is an ELF system.
--- /home/kettenis/CVS/libc/include/ldsodefs.h Fri Oct 23 22:54:01 1998
+++ include/ldsodefs.h Fri Oct 23 22:56:41 1998
@@ -1,5 +1,5 @@
/* We must use the appropriate version for the system. */
-#ifdef __ELF__
+#ifdef HAVE_ELF
# include <elf/ldsodefs.h>
#else
/* We have no dynamic loading. Define the macros we need here as dummy