On 06/27/2018 06:50 PM, Florian Weimer wrote:
On 06/27/2018 06:45 PM, Nick Clifton wrote:
> Hi Florian,
>
>> Superficially, this will work.
>>
>> But I'm a bit worried that the .weak still makes the symbol global,
>> so that it ends up in the dynamic symbol table.
>
> Hmm, if I make the symbols hidden rather than weak, will that work ?
The problem was that the build attributes section reference kept the
code around. A hidden symbol, even if it works otherwise, will bring
back that problem at least.
Oh, perhaps a hidden+weak symbol will work. But it still needs to be
globally unique before the final link, so part of the naming problem
remains.
Thanks,
Florian