ldd: renumber executable type constants

ldd had #defines for AOUT, ELF, and ELF32.  The removal of AOUT left a
possibly confusing gap.  These are not used anywhere but this file so
renumber to avoid the gap.

Reported by:	allanjude
This commit is contained in:
Ed Maste 2021-01-09 13:34:58 -05:00
parent 12a8d3027d
commit c8eee7c0bf

View File

@ -72,9 +72,9 @@ static int is_executable(const char *fname, int fd, int *is_shlib,
static void usage(void);
#define TYPE_UNKNOWN 0
#define TYPE_ELF 2 /* Architecture default */
#define TYPE_ELF 1 /* Architecture default */
#if __ELF_WORD_SIZE > 32 && defined(ELF32_SUPPORTED)
#define TYPE_ELF32 3 /* Explicit 32 bits on architectures >32 bits */
#define TYPE_ELF32 2 /* Explicit 32 bits on architectures >32 bits */
#define _PATH_LDD32 "/usr/bin/ldd32"