From 3ee6fdc782cace6015bd732807faa36184907046 Mon Sep 17 00:00:00 2001 From: niklas Date: Thu, 1 May 1997 11:14:25 +0000 Subject: [PATCH] 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. --- distrib/crunch/crunchide/crunchide.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.20.1