summaryrefslogtreecommitdiff
path: root/distrib/crunch/crunchide
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-08-05 15:24:08 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-08-05 15:24:08 +0000
commit763486558dae62b5b5cfd6235437d915c53ed22c (patch)
tree34b802a436d0f3720002f07204705da838f69bc8 /distrib/crunch/crunchide
parentb7cf912298048a3fe36d8baa5c2da7753cceb93e (diff)
Prepare for sparc/ELF.
Diffstat (limited to 'distrib/crunch/crunchide')
-rw-r--r--distrib/crunch/crunchide/crunchide.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/distrib/crunch/crunchide/crunchide.c b/distrib/crunch/crunchide/crunchide.c
index e46713251bb..9ac447ac201 100644
--- a/distrib/crunch/crunchide/crunchide.c
+++ b/distrib/crunch/crunchide/crunchide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crunchide.c,v 1.15 2002/06/09 05:53:53 todd Exp $ */
+/* $OpenBSD: crunchide.c,v 1.16 2002/08/05 15:24:07 art Exp $ */
/*
* Copyright (c) 1994 University of Maryland
@@ -76,7 +76,8 @@
* The alpha and mips based ports define _NLIST_DO_AOUT although it doesn't
* fully support a.out.
*/
-#if defined(_NLIST_DO_AOUT) && !(defined(__alpha__) || defined(__mips__))
+#if defined(_NLIST_DO_AOUT) && !(defined(__alpha__) || defined(__mips__) || \
+ (defined(__sparc__) && defined(__ELF__)))
#define DO_AOUT
#endif
@@ -213,7 +214,7 @@ struct nlist *symbase;
#define IS_GLOBAL_DEFINED(sp) \
(((sp)->n_type & N_EXT) && ((sp)->n_type & N_TYPE) != N_UNDF)
-#if defined(__sparc__) && !defined(__sparc64__)
+#if defined(__sparc__) && !defined(__ELF__)
/* is the relocation entry dependent on a symbol? */
#define IS_SYMBOL_RELOC(rp) \
((rp)->r_extern || \