diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-06 21:51:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-06 21:51:07 +0000 |
commit | bebed147b59941fc3052faa242e028d205f8ac15 (patch) | |
tree | d0bf4e8f817aca8a5c15ebff4690d20d7e8f1612 /distrib | |
parent | 68ea20c20898f1cf42d36f5f9ca4773faec7ce0a (diff) |
sparc support from NetBSD
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/crunch/crunchide/crunchide.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/distrib/crunch/crunchide/crunchide.c b/distrib/crunch/crunchide/crunchide.c index ae54da08cf5..30d924697a7 100644 --- a/distrib/crunch/crunchide/crunchide.c +++ b/distrib/crunch/crunchide/crunchide.c @@ -194,9 +194,17 @@ struct nlist *symbase; #define IS_GLOBAL_DEFINED(sp) \ (((sp)->n_type & N_EXT) && ((sp)->n_type & N_TYPE) != N_UNDF) +#ifdef __sparc +/* is the relocation entry dependent on a symbol? */ +#define IS_SYMBOL_RELOC(rp) \ + ((rp)->r_extern || \ + ((rp)->r_type >= RELOC_BASE10 && (rp)->r_type <= RELOC_BASE22) || \ + (rp)->r_type == RELOC_JMP_TBL) +#else /* is the relocation entry dependent on a symbol? */ #define IS_SYMBOL_RELOC(rp) \ ((rp)->r_extern||(rp)->r_baserel||(rp)->r_jmptable) +#endif void check_reloc(char *filename, struct relocation_info *relp); |