From: niklas Date: Thu, 1 May 1997 11:14:25 +0000 (+0000) Subject: Hack away a.out support on mips-based OpenBSD platforms. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3ee6fdc782cace6015bd732807faa36184907046;p=openbsd Hack away a.out support on mips-based OpenBSD platforms. This probably still needs work as ld later bombs on crunched objects, bu at least it compiles and runs now. --- diff --git a/distrib/crunch/crunchide/crunchide.c b/distrib/crunch/crunchide/crunchide.c index 321f1b7c825..86750241fee 100644 --- a/distrib/crunch/crunchide/crunchide.c +++ b/distrib/crunch/crunchide/crunchide.c @@ -257,7 +257,7 @@ void hide_syms(char *filename) return; } - +#if !defined(__mips__) || !defined(__OpenBSD__) /* * Read the entire file into memory. XXX - Really, we only need to * read the header and from TRELOFF to the end of the file. @@ -336,9 +336,10 @@ void hide_syms(char *filename) } close(inf); +#endif } - +#if !defined(__mips__) || !defined(__OpenBSD__) void check_reloc(char *filename, struct relocation_info *relp) { /* bail out if we zapped a symbol that is needed */ @@ -349,3 +350,4 @@ void check_reloc(char *filename, struct relocation_info *relp) exit(1); } } +#endif