This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch][gold] Change how we compute merge mapping for strings
- From: Rafael EspÃndola <rafael dot espindola at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Cc: Cary Coutant <ccoutant at gmail dot com>
- Date: Thu, 4 Jun 2015 09:19:14 -0400
- Subject: Re: [patch][gold] Change how we compute merge mapping for strings
- Authentication-results: sourceware.org; auth=none
- References: <CAG3jReJOfkwOpymMkM8cXr1K2u8MC3sO=qxkd9AwP_qMfQ-fvw at mail dot gmail dot com> <CAG3jReJLbimwj4uasT7Bd48izBUii3_oLjOezEVYN060uYde3w at mail dot gmail dot com> <CAG3jReKedNNeO-zGWsoeW_N9xETZBjYsOcmdCixReaYKzJKGBg at mail dot gmail dot com>
ping
On 27 May 2015 at 11:27, Rafael EspÃndola <rafael.espindola@gmail.com> wrote:
> ping
>
> On 20 May 2015 at 11:13, Rafael EspÃndola <rafael.espindola@gmail.com> wrote:
>> Now with the correct email address. Sorry about that.
>>
>> On 20 May 2015 at 11:12, Rafael EspÃndola <rafael.espindola@gmail.com> wrote:
>>> Currently we first record the offset and hash of each string. We then
>>> walk that computing the size from the difference in the offsets.
>>>
>>> This doesn't work if not every string is kept, which is what I am
>>> trying to do (gc unused parts of SHF_MERGE sections).
>>>
>>> With the attached patch we first add a mapping that is missing the
>>> output offset and once the strings are merged we just set the output
>>> offset.
>>>
>>> Cheers,
>>> Rafael
>>>
>>> 2015-05-20 Rafael Ãvila de EspÃndola <rafael.espindola@gmail.com>
>>>
>>> * merge.cc (do_add_input_section): Create mappings with no output
>>> offset.
>>> (finalize_merged_data): Set the output offsets.
>>> * merge.h (Merged_string): Delete.