From 567c63af19d2f03836d14856596b4ae6259c03a8 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 10 Jun 1996 13:03:12 +0000 Subject: * elf/link.h: Include elfclass.h to define __ELF_NATIVE_CLASS. (ElfW, ELFW): Use it. * elf/Makefile (headers): Add elfclass.h. * sysdeps/wordsize-32/elfclass.h: New file. * sysdeps/wordsize-64/elfclass.h: New file. * sysdeps/alpha/Implies: Add wordsize-64. * sysdeps/i386/Implies: Add wordsize-32. * sysdeps/m68k/Implies: Add wordsize-32. * sysdeps/mips/Implies: Add wordsize-32. * sysdeps/sparc/Implies: Add wordsize-32. --- elf/link.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'elf/link.h') diff --git a/elf/link.h b/elf/link.h index f7bca97..6d284cb 100644 --- a/elf/link.h +++ b/elf/link.h @@ -25,15 +25,13 @@ Cambridge, MA 02139, USA. */ #include -#define __ELF_WORDSIZE 32 /* XXX */ - /* We use this macro to refer to ELF types independent of the native wordsize. `ElfW(TYPE)' is used in place of `Elf32_TYPE' or `Elf64_TYPE'. */ -#define ElfW(type) _ElfW (Elf, __ELF_WORDSIZE, type) -#define ELFW(type) _ElfW (ELF, __ELF_WORDSIZE, type) +#define ElfW(type) _ElfW (Elf, __ELF_NATIVE_CLASS, type) +#define ELFW(type) _ElfW (ELF, __ELF_NATIVE_CLASS, type) #define _ElfW(e,w,t) _ElfW_1 (e, w, _##t) #define _ElfW_1(e,w,t) e##w##t - +#include /* Defines __ELF_NATIVE_CLASS. */ /* Rendezvous structure used by the run-time dynamic linker to communicate details of shared object loading to the debugger. If the executable's -- cgit v1.1