delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/04/24/20:29:25

From: shankar AT chromatic DOT com (Shankar Unni)
Subject: Re: ld -r
24 Apr 1997 20:29:25 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199704241701.KAA09054.cygnus.gnu-win32@hatchet.chromatic.com>
Original-To: jimen AT adtech-inc DOT com (Jimen Ching)
Original-Cc: gnu-win32 AT cygnus DOT com
In-Reply-To: <01BC4FFD.F84E4310@ilima011.lava.net> from "Jimen Ching" at Apr 23, 97 03:49:45 pm
X-Mailer: ELM [version 2.4 PL23]
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Jimen Ching said:

> I'm trying to do incremental linking using the -r option.  But I get
> an error doing the following.
> ld -r -o a1x.o a12.o a13.o a14.o
> ld -r -o a2x.o a21.o a22.o
> ld -r -o axx.o a1x.o a2x.o
> The last line gives an error about unknown format for the input files.
> What am I doing wrong?

Nothing.

I know that at least the stock 2.7.* binutils have real problems with doing
relocatable links of PE objects. The objects they produce have several
problems: (a) they produce PEI instead of PE objects for ld -r, (b) many
structures inside the object file are corrupted (e.g. the relocation
records), and on and on..

It's possible that Cygnus has fixed some of these problems in their copy of
binutils, but there are still lots of problems..

For now, the best thing may be to not use ld -r at all. There's rarely any
reason these days..
-- 
Shankar Unni                                  shankar AT chromatic DOT com
Chromatic Research                            (408) 752-9488
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019