This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch][gold] Change how we compute merge mapping for strings


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]