diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1992-10-29 19:32:25 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1992-10-29 19:32:25 +0000 |
commit | d07e072c5a986bfb04ea830e3e6129290e744eaf (patch) | |
tree | e0e8c629357ac350bf012e7eed8316b175362b98 /gcc | |
parent | 8cac6b1a8fdb8ec0b15e2f29a3ef48db51a55268 (diff) | |
download | gcc-d07e072c5a986bfb04ea830e3e6129290e744eaf.zip gcc-d07e072c5a986bfb04ea830e3e6129290e744eaf.tar.gz gcc-d07e072c5a986bfb04ea830e3e6129290e744eaf.tar.bz2 |
Allow for cross compilation.
From-SVN: r2649
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/mips-tdump.c | 11 | ||||
-rw-r--r-- | gcc/mips-tfile.c | 11 |
2 files changed, 20 insertions, 2 deletions
diff --git a/gcc/mips-tdump.c b/gcc/mips-tdump.c index 5f30aba..a650a51 100644 --- a/gcc/mips-tdump.c +++ b/gcc/mips-tdump.c @@ -24,9 +24,18 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <sys/file.h> #include <fcntl.h> #include <errno.h> -#include <a.out.h> #include "config.h" +#ifndef CROSS_COMPILE +#include <a.out.h> +#else +#include "symconst.h" +#define LANGUAGE_C +#include "sym.h" +#include "filehdr.h" +#define ST_RFDESCAPE 0xfff +#endif + #ifdef __STDC__ typedef void *PTR_T; typedef const void *CPTR_T; diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index 0aefb82..47be183 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -685,7 +685,6 @@ main () #undef index #include <sys/types.h> -#include <a.out.h> #include <string.h> #include <ctype.h> #include <fcntl.h> @@ -693,6 +692,16 @@ main () #include <signal.h> #include <sys/stat.h> +#ifndef CROSS_COMPILE +#include <a.out.h> +#else +#include "symconst.h" +#define LANGUAGE_C +#include "sym.h" +#include "filehdr.h" +#define ST_RFDESCAPE 0xfff +#endif + #if defined (USG) || defined (NO_STAB_H) #include "gstab.h" /* If doing DBX on sysV, use our own stab.h. */ #else |