[arch-dev-public] [signoff] binutils-2.21 toolchain rebuild

Allan McRae allan at archlinux.org
Sun Dec 19 19:47:43 EST 2010


On 20/12/10 07:23, Jan Steffens wrote:
> On Sun, Dec 19, 2010 at 6:14 AM, Allan McRae<allan at archlinux.org>  wrote:
>> gcc-4.5.2-2
>>   - enable linker plugin support.  gcc will use ld(.bfd) linker by default
>> but switch to the ld.gold linker when -fuse-linker-plugin is specified.
>
> Where do you have this from? I can't find anything about this
> "with-plugin-linker" option (not even in the source). gcc still seems
> to use /usr/bin/ld when I call it via "gcc -v -flto" or "gcc -v -flto
> -fuse-linker-plugin". It doesn't care when I remove /usr/bin/ld.gold.
>

Bah...  This took me a while to figure out as everything is working with 
the toolchain on my system (I am currently testing glibc and gcc 
snapshots).  It turns out the option is --with-plugin-ld and I copied it 
wrong from my local PKGBUILDs.

Fixed in gcc-4.5.2-3.

 > gcc -fuse-linker-plugin -v -o test test.c
...
GNU assembler version 2.21.0 (i686-pc-linux-gnu) using BFD version (GNU 
Binutils) 2.21.0.20101217
...
/usr/bin/ld.gold -plugin 
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/liblto_plugin.so 
-plugin-opt=/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/lto-wrapper ...

Allan


More information about the arch-dev-public mailing list