diff options
author | edwin <edwin@FreeBSD.org> | 2008-07-28 12:49:16 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2008-07-28 12:49:16 +0000 |
commit | 969134af63e2633f3cd338e12d9d44bca4fa026e (patch) | |
tree | e8ef5d5160442f1f588d6185cd7215a4824951e6 /usr.bin/ldd/ldd.c | |
parent | 0307110dbcb2a6bf23678949b1fd708e03fa92a8 (diff) | |
download | FreeBSD-src-969134af63e2633f3cd338e12d9d44bca4fa026e.zip FreeBSD-src-969134af63e2633f3cd338e12d9d44bca4fa026e.tar.gz |
Fix text in the comment why we check for ELF32_R_TYPE
Approved by: bde@
MFC after: 2 days2 days
Diffstat (limited to 'usr.bin/ldd/ldd.c')
-rw-r--r-- | usr.bin/ldd/ldd.c | 13 |
1 files changed, 5 insertions, 8 deletions
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, |