[devel] Q: --no-copy-dt-needed-entries
Kirill A. Shutemov
kirill на shutemov.name
Пн Мар 22 15:41:07 UTC 2010
2010/3/22 Alexey Tourbin <at на altlinux.ru>:
> On Mon, Mar 22, 2010 at 01:00:46PM +0200, Kirill A. Shutemov wrote:
>> >> gold(1) behaves that way by default. AFAIK, Fedora goes to switch to it later.
>> >> So it's one of step of switching.
>> >
>> > So a good reason to change the default is because of Fedora. Because
>> > they are going to change it, too! Just not yet. Maybe next week.
>>
>> Alexey, what will we do when Fedora and other major distributions
>> switch to gold(1)?
>
> Do they? https://fedoraproject.org/wiki/GoldLinking -
> "may make it default linker in the future", with no schedule.
Do you think they rebuild packages with gold just for fun? ;)
>> We have three options:
>>
>> 1. Switch to gold too and fix all regressions in repository including
>> indirect linking issues.
>>
>> 2. Switch to gold, but add functionality for --copy-dt-needed-entries
>> which, probably, will never be upstreamed.
>
> Quite an option.
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=10238
>
>> 3. Do not switch to gold and use semi-supported gnu-ld.
>>
>> > But as far as I know, Fedora did never enable --as-needed by default.
>> > This makes a difference.
>
> By the way, I'm not sure if gold(1) can do the --as-needed thing.
> Probably we need to implement it, too.
Yes, it can. It's default behavior. And it's not necessary to specify
libraries you want to link with at the end of command line.
Подробная информация о списке рассылки Devel