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] PR binutils/18218: bad handling of .debug_str_offsets section


On Thu, Apr 9, 2015 at 11:03 AM, Doug Evans <dje@google.com> wrote:
> On Thu, Apr 9, 2015 at 10:41 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>>> Even better, treat the "sec" argument to load_specific_debug_section
>>> as "const Elf_Internal_Shdr * sec".
>>> Modifying sec->sh_size to be the size of the now-uncompressed section
>>> is fragile and what led to this bug. Leave this data be the
>>> representation of what's actually on disk, and build on it, not modify
>>> it.
>>
>> We need to update sh_size to get readelf to work right.
>
> I don't understand.
> There are lots of ways to make readelf work right.
> Some better than others.

Patches are welcome.

-- 
H.J.


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