[systemd-devel] [RFC 25/25] add -z muldefs to linker flags

Michael Biebl mbiebl at gmail.com
Fri Sep 19 03:57:04 PDT 2014


2014-09-19 11:31 GMT+02:00 Dan Horák <dan at danny.cz>:
> On Fri, 19 Sep 2014 11:24:14 +0200
> Emil Renner Berthing <systemd at esmil.dk> wrote:
>
>> On 19 September 2014 08:42, Michael Biebl <mbiebl at gmail.com> wrote:
>> > 2014-09-19 0:34 GMT+02:00 David Herrmann <dh.herrmann at gmail.com>:
>> >>>          -Wl,-fuse-ld=gold])
>> >
>> > The reason to use gold  was that the compat libraries require the
>> > ifunc functionality.
>> >
>> > This is no longer the case, so I'd suggest to not override the
>> > default linker and simply use the system default one.
>>
>> Hi, thanks for looking at this.
>>
>> This is the error I get when compiling the latest systemd from git,
>> but with that line from configure.ac removed, so it doesn't use gold
>> to link:
>>
>> http://sprunge.us/LWiH
>>
>> I didn't look into why those functions are defined multiple times yet,
>> but I thought I'd post this early.
>
> there was a bug in binutils causing linking problems with systemd for
> LTO + ifunc when using ld.bfd instead of gold, see
> http://pkgs.fedoraproject.org/cgit/binutils.git/commit/?id=d7c31854e82903e663df160ad4c26c938eca4b59

Right, but we no longer usce ifunc, so we no longer need to override
the default linker.


More information about the systemd-devel mailing list