[PATCH 01/13] elf: strdup() l_name if no realname [BZ #30100]
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Wed Mar 29 14:30:16 GMT 2023
On 29/03/23 11:28, stsp wrote:
>
> 29.03.2023 19:19, Adhemerval Zanella Netto пишет:
>>
>> On 29/03/23 11:12, stsp wrote:
>>> 29.03.2023 18:54, Adhemerval Zanella Netto пишет:
>>> But dlmem() can also use "" as the name
>>> if the name is not specified explicitly.
>>> Without that patch it crashes.
>>> I think you mean its not needed w/o dlmem()?
>> Yes, I did not take in consideration dlmem inclusion for this. If dlmem breaks
>> this assumption, it is another issue with the interface.
> Could you please suggest what should
> be done? dlmem() may create the anonymous
> objects, name is optional. I noticed that some
> code uses "" and did the same.
> What is the suggested solution about
> creating an anonymous object?
> Of course you can prohibit an empty name
> for dlmem(), but that will only force people
> to fake it with some "123".
At least move this change to patch that actually requires it, as an
isolated change it is not required.
More information about the Libc-alpha
mailing list