This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Add ld.gold option "--dynamic-list-only"
- From: Vyacheslav Ostapenko <ostap73 at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Cary Coutant <ccoutant at google dot com>, Binutils <binutils at sourceware dot org>
- Date: Tue, 11 Mar 2014 17:02:46 -0400
- Subject: Re: [PATCH] Add ld.gold option "--dynamic-list-only"
- Authentication-results: sourceware.org; auth=none
- References: <CAJgOwdkGnSh3ywit_NEQdW3NxVf_q=rTqFa0gUbeMFz6ZXvQiA at mail dot gmail dot com> <CAHACq4pwdv2AxX6B4XuGLku_xOjiKzxUC6Z5mLcdZ0kfSVHfkw at mail dot gmail dot com> <CAJgOwd=0nhubZxvV9bUKdxGsuSeoK3wsZ8n51w18zBYMHeA+AA at mail dot gmail dot com> <CAHACq4ogn0_DbVxr50T-ZezQLWH8JXEfZfhK=QckNOBVB+WFyQ at mail dot gmail dot com> <CAJgOwdmp5aq6hYm-Fyt2CKxSu=zoFMXXxLv+HoLfOosTxpiSEQ at mail dot gmail dot com> <CAHACq4r6GRhGGKW=L1t2hBT8-anQVwNQjWYqD0JYhGd0T0GYOQ at mail dot gmail dot com> <CAJgOwdm+wVy_TEDx5raCg7zF2Lw8029CyU7MjY4K4POJhC0cQQ at mail dot gmail dot com> <CAHACq4r-BgO6NyQ_7r87DZwrRrthO50yZpG_fsSstLEGMk4JUg at mail dot gmail dot com> <CAJgOwd=w+bFL+g3QBv_Aw27ALywyF2j4Zy5ps5g2SQ76EJh=ow at mail dot gmail dot com> <CAHACq4osiF5v5G2O1MRBug2q8Rxh_M6+J1ejTj6iR-CQ=NACmg at mail dot gmail dot com> <CAJgOwdkVg1mqhFN53OKR8EgD1kRf9fFbzwQ2NKUKFwLE6FgjBQ at mail dot gmail dot com> <CAHACq4pUXoeK+Lwps28x6ev0XEkrrQvxWRisRTMC=xxUjpMWLA at mail dot gmail dot com> <CAMe9rOo--2LQg7NE2xN8V_tbF84g9V0SJ7iSBt9MNafzzDAbeA at mail dot gmail dot com>
> Why do we need a new option?
The problem that --dynamic-list doesn't modify automatic exports (what
is already exported by __attribute__((visibility( default ))) ) and
there is no way to override automatic exports.
But this is not necessary if bug with --exclude-libs is fixed. The bug
is that --exclude-libs overrides exports specified by --dynamic-list
or --export-symbol (non-automatic exports).
On Tue, Mar 11, 2014 at 4:47 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Tue, Mar 11, 2014 at 1:26 PM, Cary Coutant <ccoutant@google.com> wrote:
>> The binutils list got dropped accidentally from our conversation.
>> Here's the missing part of the conversation...
>>
>> Does anyone have any comment on whether a symbol that is both in
>> --dynamic-list script and in an --exclude-libs library should be
>> exported? I think it's a bug that --exclude-libs overrides
>> --dynamic-list -- the other way around is the only way that makes
>> sense to me.
>>
>
> Doesn't version script
>
> Node name can be omitted, provided it is the only version node in the
> version script. Such version script doesn't assign any versions to
> symbols, only selects which symbols will be globally visible out and
> which won't.
>
> { global: foo; bar; local: *; };
>
> do the same thing? Why do we need a new option?
>
>
> --
> H.J.