dd the various #defines/#ifdefs for ECOFF support. ECOFF will
probably never be completely supported here (since its internal vs. external symbol handling is so annoying), but at least we can recognize the ECOFF binaries and print something useful, on machines that use them.
This commit is contained in:
parent
318bbe30f5
commit
d7b9b1a503
|
@ -198,6 +198,9 @@ struct {
|
|||
#ifdef NLIST_AOUT
|
||||
{ "a.out", check_aout, hide_aout, },
|
||||
#endif
|
||||
#ifdef NLIST_ECOFF
|
||||
{ "ECOFF", check_ecoff, hide_ecoff, },
|
||||
#endif
|
||||
#ifdef NLIST_ELF32
|
||||
{ "ELF32", check_elf32, hide_elf32, },
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: extern.h,v 1.2 1997/01/22 23:20:03 cgd Exp $ */
|
||||
/* $NetBSD: extern.h,v 1.3 1997/01/22 23:53:58 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -30,14 +30,12 @@
|
|||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ECOFF will likely never be supported, because of its wacky way of
|
||||
* storing symbols and strings.
|
||||
*/
|
||||
#ifdef __alpha__
|
||||
#define NLIST_ECOFF
|
||||
#define NLIST_ELF64
|
||||
#else
|
||||
#define NLIST_AOUT
|
||||
/* #define NLIST_ECOFF */
|
||||
/* #define NLIST_ELF32 */
|
||||
/* #define NLIST_ELF64 */
|
||||
#endif
|
||||
|
@ -46,6 +44,10 @@
|
|||
int check_aout(int, const char *);
|
||||
int hide_aout(int, const char *);
|
||||
#endif
|
||||
#ifdef NLIST_ECOFF
|
||||
int check_ecoff(int, const char *);
|
||||
int hide_ecoff(int, const char *);
|
||||
#endif
|
||||
#ifdef NLIST_ELF32
|
||||
int check_elf32(int, const char *);
|
||||
int hide_elf32(int, const char *);
|
||||
|
|
|
@ -198,6 +198,9 @@ struct {
|
|||
#ifdef NLIST_AOUT
|
||||
{ "a.out", check_aout, hide_aout, },
|
||||
#endif
|
||||
#ifdef NLIST_ECOFF
|
||||
{ "ECOFF", check_ecoff, hide_ecoff, },
|
||||
#endif
|
||||
#ifdef NLIST_ELF32
|
||||
{ "ELF32", check_elf32, hide_elf32, },
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: extern.h,v 1.2 1997/01/22 23:20:03 cgd Exp $ */
|
||||
/* $NetBSD: extern.h,v 1.3 1997/01/22 23:53:58 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -30,14 +30,12 @@
|
|||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ECOFF will likely never be supported, because of its wacky way of
|
||||
* storing symbols and strings.
|
||||
*/
|
||||
#ifdef __alpha__
|
||||
#define NLIST_ECOFF
|
||||
#define NLIST_ELF64
|
||||
#else
|
||||
#define NLIST_AOUT
|
||||
/* #define NLIST_ECOFF */
|
||||
/* #define NLIST_ELF32 */
|
||||
/* #define NLIST_ELF64 */
|
||||
#endif
|
||||
|
@ -46,6 +44,10 @@
|
|||
int check_aout(int, const char *);
|
||||
int hide_aout(int, const char *);
|
||||
#endif
|
||||
#ifdef NLIST_ECOFF
|
||||
int check_ecoff(int, const char *);
|
||||
int hide_ecoff(int, const char *);
|
||||
#endif
|
||||
#ifdef NLIST_ELF32
|
||||
int check_elf32(int, const char *);
|
||||
int hide_elf32(int, const char *);
|
||||
|
|
Loading…
Reference in New Issue