[PATCH] libelf: Fix some 32bit offset/size issues that break updating 4G+ files.

Mark Wielaard mark@klomp.org
Wed Jul 3 15:34:00 GMT 2019


On Wed, 2019-07-03 at 08:23 -0700, Lei Zhang wrote:
> On Wed, Jul 3, 2019 at 7:53 AM Mark Wielaard <mark@klomp.org> wrote:
> > Thanks for the file, it is indeed pretty big :)
> > But I am not able to replicate the issue with elfutils from git
> > trunk.
> > commit 31c8b3f098b0654db8f573b2a15d5b6d07d4d3b0
> > 
> > And both the produced chrome_elfutil_test.stripped and
> > chrome_elfutil_test.debug files seem valid ELF files.
> 
> I figured out the problem on my side. The strip binary dynamically
> linked to /usr/lib/x86_64-linux-gnu/libelf.so.1 and friends. Once I
> set LD_LIBRARY_PATH, I got the expected output.

Great. Thanks for testing on a real world binary.
There aren't actually that many out there this big!
Please do let me know if you still see issues (or discover others).

Thanks,

Mark



More information about the Elfutils-devel mailing list