From 0cc6a79622d952962533853939af8a91570630b5 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Wed, 29 Jan 1992 16:44:09 +0000 Subject: [PATCH] ldlnk960.c: Special #ifdef to choose little endian ony ldgram.y: allow forward ref of section --- ld/.Sanitize | 8 +++++++- ld/config.h | 2 +- ld/ldlnk960.c | 6 +++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ld/.Sanitize b/ld/.Sanitize index e468e1b52bb..f742380bdd9 100644 --- a/ld/.Sanitize +++ b/ld/.Sanitize @@ -38,6 +38,7 @@ configdos.bat configure.in ld.h ld.texinfo +lderror.c ldemul.c ldemul.h ldctor.c @@ -81,6 +82,7 @@ ldver.h ldwarn.h ldwrite.c ldwrite.h +lexsup.c makefile.dos mkscript.c news.sc @@ -92,7 +94,11 @@ echo Done in `pwd`. # # # $Log$ -# Revision 1.26 1992/01/24 22:35:55 sac +# Revision 1.27 1992/01/29 16:44:08 sac +# ldlnk960.c: Special #ifdef to choose little endian ony +# ldgram.y: allow forward ref of section +# +# Revision 1.26 1992/01/24 22:35:55 sac # .Sanitize: added relax.c # ldsym.c ldlang.* more map stuff # diff --git a/ld/config.h b/ld/config.h index b1281567b1a..b9c43a82c5d 100644 --- a/ld/config.h +++ b/ld/config.h @@ -33,7 +33,7 @@ #define EBMON29K_EMULATION_NAME "ebmon29k" #define GLDI386AOUT_EMULATION_NAME "gldi386aout" /* Otherwise default to this emulation */ -/* Otherwise default to this emulation */ + #ifndef DEFAULT_EMULATION #ifdef GNU960 #define DEFAULT_EMULATION GLD960_EMULATION_NAME diff --git a/ld/ldlnk960.c b/ld/ldlnk960.c index 8936c4e730d..22d04fcdea3 100755 --- a/ld/ldlnk960.c +++ b/ld/ldlnk960.c @@ -246,9 +246,13 @@ lnk960_choose_target() char *from_outside = getenv(TARGET_ENVIRON); if (from_outside != (char *)NULL) return from_outside; +#ifdef LNK960_LITTLE + return LNK960_TARGET_LITTLE +#else return LNK960_TARGET; - #endif +#endif + } /* The default script if none is offered */ -- 2.30.2