Old Bug

Jiri Vanek jvanek at redhat.com
Mon Aug 6 11:31:27 PDT 2012


On 08/06/2012 05:21 PM, Thomas Meyer wrote:
> Am Montag, den 06.08.2012, 09:06 +0200 schrieb Jiri Vanek:
>> On 08/04/2012 10:23 AM, Thomas Meyer wrote:
>>> Am Freitag, den 03.08.2012, 15:23 +0100 schrieb Andrew Haley:
>>>> On 08/03/2012 03:10 PM, Jiri Vanek wrote:
>>>>> On 08/03/2012 02:13 PM, Jiri Vanek wrote:
>>>>>> On 08/03/2012 12:58 PM, Mark Wielaard wrote:
>>>>>>> On Fri, 2012-08-03 at 11:02 +0100, Andrew Haley wrote:
>>>>>>>> This is nothing to do with debuginfo.  It's to do with exported symbols.
>>>>>>>>
>>>>>>>> nm -D /usr/lib64/IcedTeaPlugin.so
>>>>>>>>
>>>>>>>> IcedTeaPlugin.so should only export the necessary symbols.
>>>>>>>
>>>>>>> This might be helpful:
>>>>>>> http://www.flameeyes.eu/autotools-mythbuster/libtool/symbols.html
>>>>>>>
>>>>>>> And of course lots on symbol visibility is described in:
>>>>>>> http://www.akkadia.org/drepper/dsohowto.pdf
>>>>>>
>>>>>> Yy, I found the same, good learning material
>>>>>>>
>>>>>>
>>>>>> So I'm Working on this.
>>>>>
>>>>> This is an attempt to remove unluckily exported symbols from icedtea-web plugin.
>>>>> However I do not know which symbols can be hidden and which can not. So this patch is removing the
>>>>> two originally reported.
>>>>>
>>>>> If to much symbols will have to be marked or to much should remains unmarked, then I will probably
>>>>> use blacklist/whitelist for this  de-exporting.
>>>>>
>>>>> this should go to 1.3 as well.
>>>>
>>>> We'll have to take all of them out that aren't explicitly required,
>>>> otherwise this bug will bite us again.
>>>>
>>>> Andrew.
>>>>
>>>
>>> attached patch should do the trick.
>>>
>>> with kind regards
>>> thomas
>>>
>>>
>> Hey! You have stolen may patch! :o) (and is nearly the same as I have prepared! O:)
>
> sorry xD
>
>>
>> It looks ok. The amount of symbols is very reduced..
>>
>> I have just one  questions and one nitpick:
>>
>>
>> When i was searching for symbols which should remain visible -
>> https://developer.mozilla.org/en-US/docs/Gecko_Plugin_API_Reference,
>> https://developer.mozilla.org/en-US/docs/Gecko_Plugin_API_Reference/Scripting_plugins it looked to
>> me that more should remain marked as "default" when fvisibility=hidden is used.  You are marking
>> just three of them. Are you sure with them to be enough?
>
> No I'm not sure; this is what the flash plugin exports...

Nice example...

>
> and it's four symbols, not threee:

sorry for word-typo - i have think about  four, write three :-/

> NP_GetMIMEDescription
> NP_GetValue
> NP_Initialize
> NP_Shutdown
>
> btw. the totem plugins seem to have the same bug as the icetea-web
> plugin and export a lot of symbols...
>
>> Anyway -  applets and regression tests  looks working fine, so I'm ok for head.
>>
>> nitpisck - do you think it is worthy to unify old and new C switches to new variable?
>> eg PLUGIN_COMPILATION_SWITCHES= -fvisibility=hidden -fPIC
>
> I have no opinion on that. do you like to do this?

Not necessary,  feel free to push original patch.

Thank you for fix
    J.


ps: don't forgot changelog;)
>
>>
>> Best regards,
>>     J.
>>
>>
>>
>
>
>




More information about the distro-pkg-dev mailing list