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 17:06:59 -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>
if (is_zcompressed)
{
// Skip over the ".zdebug" prefix.
name += 7;
uncompressed_size = get_uncompressed_size(contents, len);
+ info.addralign = shdr.get_sh_flags();
This should be shdr.get_sh_addralign().
Object::decompressed_section_contents(
unsigned int shndx,
section_size_type* plen,
- bool* is_new)
+ bool* is_new,
+ uint64_t *palign)
Should be "uint64_t* palign".
bool
section_is_compressed(unsigned int shndx,
- section_size_type* uncompressed_size) const
+ section_size_type* uncompressed_size,
+ elfcpp::Elf_Xword *palign = NULL) const
Likewise.
const unsigned char*
decompressed_section_contents(unsigned int shndx, section_size_type* plen,
- bool* is_cached);
+ bool* is_cached, uint64_t *palign = NULL);
Likewise.
-cary