This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] gold: Get alignment of uncompressed section from ch_addralign
- From: Cary Coutant <ccoutant at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Sat, 1 Dec 2018 21:50:56 -0800
- Subject: Re: [PATCH] gold: Get alignment of uncompressed section from ch_addralign
- References: <20181129133852.19103-1-hjl.tools@gmail.com> <CAMe9rOp3OBSdDoCyfeh_44FA9qRvxVDTQqnM7Ti_YtMXnb6wUw@mail.gmail.com> <CAJimCsF5hrYNYf7V3EjJ2PWSR=j5m07Nf30=iSC_3iFFOfpRAw@mail.gmail.com> <20181202023038.GA8370@gmail.com>
> PR binutils/23919
> * merge.cc (Output_merge_string<Char_type>::do_add_input_section):
> Get addralign from decompressed_section_contents.
> * object.cc (build_compressed_section_map): Set info.addralign.
> (Object::decompressed_section_contents): Add a palign
> argument and store p->second.addralign in *palign if it isn't
> NULL.
> * object.h (Compressed_section_info): Add addralign.
> (section_is_compressed): Add a palign argument, default it
> to NULL, store p->second.addralign in *palign if it isn't NULL.
> (Object::decompressed_section_contents): Likewise.
> * output.cc (Output_section::add_input_section): Get addralign
> from section_is_compressed.
This is OK. Thanks!
-cary