public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* Re: ld -V against LDEMULATION
       [not found] <9503062131.AA14741@gnu.mc.xerox.com>
@ 1995-03-06 20:32 ` H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 1995-03-06 20:32 UTC (permalink / raw)
  To: Marty Leisner; +Cc: linuxgcc, Ian Lance Taylor, gas2

> 
> 
> In binutils 2.5.2.7 (the Linux elf release)
> 
> If you specifiy LDEMULATION wrong, then try to
> do a ld -V, you get nothing...
> 
> ld -V should always print something useful.
> 
> leisner@thingy$ export LDEMULATION=i386_elf
> leisner@thingy$ ld -V
> ld: unrecognised emulation mode: i386_elf
> leisner@thingy$ ld -V
> ld: unrecognised emulation mode: i386_elf
> leisner@thingy$ unset LDEMULATION
> leisner@thingy$ ld -V
> ld version 2.5.2.7 (with BFD 2.5)
>   Supported emulations:
>    i386linux 
>    elf_i386 
>    i386aout 
>    i386bsd 
>    i386coff 
>    i386mach 
> leisner@thingy$ LDEMULATION=elf_i386
> leisner@thingy$ ld -V
> ld version 2.5.2.7 (with BFD 2.5)
>   Supported emulations:
>    i386linux 
>    elf_i386 
>    i386aout 
>    i386bsd 
>    i386coff 
>    i386mach 
> leisner@thingy$ 
> 
> 
> 
> marty		leisner@sdsp.mc.xerox.com   
> Member of the League for Programming Freedom ( http://www.lpf.org )
> Any sufficiently advanced technology is indistinguishable from magic
>         Arthur C. Clarke, The Lost Worlds of 2001
> 

Please apply this patch. It will be included in the next Linux version
if it is not in the snapshot.


-- 
H.J. Lu
NYNEX Science and Technology, Inc.			hjl@nynexst.com
-----
===================================================================
RCS file: /home/cvs/gnu/binutils/ld/ldmain.c,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 ldmain.c
*** 1.1.1.2	1995/02/22 02:02:32
--- ldmain.c	1995/03/07 04:27:40
***************
*** 353,358 ****
--- 353,359 ----
       char **argv;
  {
    char *emulation;
+   ld_emulation_xfer_type **ptr;
    int i;
  
    emulation = (char *) getenv (EMULATION_ENVIRON);
***************
*** 402,408 ****
  	}
      }
  
!   return emulation;
  }
  
  /* If directory DIR contains an "ldscripts" subdirectory,
--- 403,419 ----
  	}
      }
  
!   /* Check if emulation is valid. */
!   for (ptr = ld_emulations; *ptr; ptr++)
!   {
!     if (!strcmp (emulation, (*ptr)->emulation_name))
!     {
!       return emulation;
!     }
!   }
!   einfo("%P: unknown emulation: `%s'\n", emulation); 
!   ldversion (1);
!   xexit (1);
  }
  
  /* If directory DIR contains an "ldscripts" subdirectory,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-03-06 20:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <9503062131.AA14741@gnu.mc.xerox.com>
1995-03-06 20:32 ` ld -V against LDEMULATION H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).