Re: [PATCH] libelf: Fix unaligned d_off offsets for input sections with large alignments

2021-07-08 Thread Andrei Homescu
On Thu, Jul 8, 2021 at 2:37 AM Mark Wielaard wrote: > Hi Andrei, > > On Wed, 2021-07-07 at 13:24 -0700, Andrei Homescu wrote: > > I wrote this patch on behalf of someone else, so the copyright line > > should be: > > Copyright (C) 2021 Runsafe Security, Inc. > >

Re: [PATCH] libelf: Fix unaligned d_off offsets for input sections with large alignments

2021-07-07 Thread Andrei Homescu
Hi, On Wed, Jul 7, 2021 at 5:02 AM Mark Wielaard wrote: > Hi Andrei, > > On Mon, 2021-06-28 at 18:26 -0700, Andrei Homescu wrote: > > The mkl_memory_patched.o object inside the libmkl_core.a library from > > the Intel Math Kernel Library version 2018.2.199 has this section

[PATCH] libelf: Fix unaligned d_off offsets for input sections with large alignments

2021-06-28 Thread Andrei Homescu
his corner case by increasing the alignment to the next power of two after the clamping, so the check passes. A test that reproduces this bug using strip is also included. Signed-off-by: Andrei Homescu --- libelf/ChangeLog| 5 + libelf/elf_getdata.c| 13 +