[PATCH] gold: Get alignment of uncompressed section from ch_addralign
H.J. Lu
hjl.tools@gmail.com
Thu Nov 29 17:53:00 GMT 2018
On Thu, Nov 29, 2018 at 5:39 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> The ELF compression header has a field (ch_addralign) that is set to
> the alignment of the uncompressed section. This way the section itself
> can have a different alignment than the decompressed section. Update
> decompress_input_section to get alignment of the decompressed section
> and use it when merging decompressed strings.
>
> PR binutils/23919
> * compressed_output.cc (decompress_input_section): Add a palign
> argument and store ch_addralign in *palign if it isn't NULL.
> * compressed_output.h (decompress_input_section): Add a palign
> argument and default it to NULL.
> * merge.cc (Output_merge_string<Char_type>::do_add_input_section):
> Get addralign from decompress_input_section.
> * object.cc (Object::decompressed_section_contents): Add a palign
> argument and pass it to decompress_input_section.
> * object.h (Object::decompressed_section_contents): Add a palign
> argument and default it to NULL.
This is the updated patch.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gold-Get-alignment-of-uncompressed-section-from-ch_a.patch
Type: text/x-patch
Size: 6713 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20181129/22bf09d5/attachment.bin>
More information about the Binutils
mailing list