'ld' backward incompatibility.

Ian Lance Taylor ian@zembu.com
Mon Mar 27 08:01:00 GMT 2000


   From: Sergei Organov <osv@javad.ru>
   Date: 27 Mar 2000 18:15:56 +0400

   JFYI,

   Before I used the 'ld' to create empty ELF file like this:

   ld -r -o a.o

   However, the latest CVS version of 'ld' doesn't allow it:

   osv@osv$ ~/local/bin/ppc-rtems-ld -r -o a.o
   /home/osv/local/bin/ppc-rtems-ld: no input files

   There is a simple work-around (using 'as' instead of 'ld'), but I thought
   maybe it's worth to tell you about this incompatibility anyway.

The linker has had that particular error message for many years.  I
don't think this is a recent change.

What target and what sources were you using before?  Are you sure your
linker script didn't happen to mention an input file?

Ian


More information about the Binutils mailing list