From 969134af63e2633f3cd338e12d9d44bca4fa026e Mon Sep 17 00:00:00 2001 From: edwin Date: Mon, 28 Jul 2008 12:49:16 +0000 Subject: Fix text in the comment why we check for ELF32_R_TYPE Approved by: bde@ MFC after: 2 days2 days --- usr.bin/ldd/ldd.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c index 3e6a072..a130521 100644 --- a/usr.bin/ldd/ldd.c +++ b/usr.bin/ldd/ldd.c @@ -49,15 +49,12 @@ __FBSDID("$FreeBSD$"); #include "extern.h" /* - * Elf32_xhdr structures can only be used if sys/elf32.h is included, so - * check for the existence of one of the macros defined in sys/elf32.h. - * - * The presense of the ELF32_R_TYPE macro via machine/elf.h has been verified - * on amd64 6.3, ia64 7.0 and sparc64 7.0. The absence of the macro has been - * verified on alpha 6.2. + * 32-bit ELF data structures can only be used if the system header[s] declare + * them. There is no official macro for determining whether they are declared, + * so check for the existence of one of the 32-macros defined in elf(5). */ -#if defined(ELF32_R_TYPE) -#define ELF32_SUPPORTED +#ifdef ELF32_R_TYPE +#define ELF32_SUPPORTED #endif static int is_executable(const char *fname, int fd, int *is_shlib, -- cgit v1.1