From: kchung AT microunity DOT com (Kin-man Chung) Subject: Problem with ld -r 10 Jan 1997 15:14:14 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <32D69254.167EB0E7.cygnus.gnu-win32@microunity.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (X11; I; SunOS 4.1.4 sun4m) Original-To: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com This happens with b17.1 version of the binaries on Windows 95. When .o files are linked, ld puts out four symbols: __bss_start__ __bss_end__ __data_start__ __data_end__ This is true even when "ld -r" is used. Therefore if I do ld -r -o foo.o f1.o f2.o ld -r -o bar.o b1.o b2.o ld -o foobar foo.o bar.o I'll get multiple definition error for these symbols. Anyone knows how to get around this problem, other than not to use "ld -r"? - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".