PATCH to ld fixes the MIPS ECOFF --embedded-relocs BFD check bug

Ian Lance Taylor ian@zembu.com
Wed Jun 7 17:53:00 GMT 2000


   Date: Wed, 7 Jun 00 19:45:17 CDT
   From: msokolov@ivan.Harhan.ORG (Michael Sokolov)

   +       /* As first-order business, make sure that each input BFD is ECOFF. It
   +          better be, as we are directly calling an ECOFF backend function.  */
   +       if (strncmp (bfd_get_target (abfd), "ecoff", 5))
   + 	einfo ("%F%B: all input objects must be ECOFF for --embedded-relocs\n");
   + 

Just check for bfd_target_ecoff_flavour here.  Don't make assumptions
about the target name.

Ian


More information about the Binutils mailing list