From: ian AT cygnus DOT com (Ian Lance Taylor) Subject: Re: ld -r (relocatable link) 8 Apr 1998 19:30:19 -0700 Message-ID: <199804090224.WAA02770.cygnus.cygwin32.developers@subrogation.cygnus.com> References: <35312541 DOT 165056403 AT smtp DOT goodnet DOT com> To: jeffdb AT goodnet DOT com Cc: simon AT octanttech-nospam DOT com, cygwin32-developers AT cygnus DOT com From: jeffdbREMOVETHIS AT goodnet DOT com (Mikey) Date: Thu, 09 Apr 1998 01:35:58 GMT I have been meaning to take a look at this, one Idea I had was to try a linker script for -r that moved .idata (and possibly .edata) into /DISCARD/ I believe that .idata is a large part of the reason -r dosen't work. ld -r is already fixed in the binutils development code. The fix will be in the upcoming binutils 2.9 release. Part of the fix was to not put .idata$x in .idata when using -r. Discard the .idata$x sections would be incorrect. Ian