[patch] -dynamic-linker autodetection broken with biarch gcc

Paul Brook paul@codesourcery.com
Thu Jul 14 19:23:00 GMT 2005


I'm seeing several failures testing binutils on an x86 Debian sid system. It 
turns out these are indirectly due to the way Debian configures its biarch 
toolchains.

The problem is that configure.host greps the gcc spec file to determine the 
name of the dynamic linker. This fails in two ways:
- The spec file contains other references to ld*.so, so the grep pattern 
matches multiple lines.
- The non-default -m64 multilib happens to appear first.

Conveniently gcc --help --verbose invokes the linker to obtain a list of 
commandline options, so we can use this to obtain the value instead.

Tested on i686-linux x86_64-linux and powerpc-linux.
Ok?

Paul

2005-07-14  Paul Brook  <paul@codesourcery.com>

	* configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
	to determine dynamic linker name.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.detect_ldso
Type: text/x-diff
Size: 1323 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050714/8867e308/attachment.bin>


More information about the Binutils mailing list