PATCH: Use gcc to build DSO

H. J. Lu hjl@lucon.org
Fri May 16 02:24:00 GMT 2003


This patch fixes DSO build. We use "ld_link $ld" to build shared
libraries. "ld_link $ld" is for building executables. It is
totally wrong to use it for building shared libraries.


H.J.
-------------- next part --------------
2003-05-15  H.J. Lu <hongjiu.lu@intel.com>

	* config/default.exp (gcc_ld_flag): New. Make the newly built
	linker available to gcc.
	* lib/ld-lib.exp (default_ld_simple_link): Pass $gcc_ld_flag
	to gcc.

	* ld-elfvers/vers.exp: Use "ld_simple_link $CC" to build shared
	libraries.
	* ld-elfvsb/elfvsb.exp: Likewise.
	* ld-elfweak/elfweak.exp: Likewise.
	* ld-shared/shared.exp: Likewise.

	* ld-elfvers/vers.exp: Remove xfail for powerpc-*-linux*.

	* ld-elfvers/vers.exp: Use "-Wl,-rpath,." to build shared
	libraries.


More information about the Binutils mailing list