This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Dependecy on __ELF__


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]