Re: [Mesa-dev] [Mesa-stable] [PATCH] util/build-id: Fix address comparison for binaries with LOAD vaddr > 0

2018-02-05 Thread Emil Velikov
On 1 February 2018 at 11:35, Emil Velikov wrote: > On 25 January 2018 at 15:11, Stephan Gerhold wrote: >> On Thu, Jan 25, 2018 at 11:22:10AM +, Emil Velikov wrote: >>> On 24 January 2018 at 14:13, Stephan Gerhold wrote: >>> > build_id_find_nhdr_for_addr() fails to find the build-id if the fi

Re: [Mesa-dev] [Mesa-stable] [PATCH] util/build-id: Fix address comparison for binaries with LOAD vaddr > 0

2018-02-01 Thread Emil Velikov
On 25 January 2018 at 15:11, Stephan Gerhold wrote: > On Thu, Jan 25, 2018 at 11:22:10AM +, Emil Velikov wrote: >> On 24 January 2018 at 14:13, Stephan Gerhold wrote: >> > build_id_find_nhdr_for_addr() fails to find the build-id if the first LOAD >> > segment has a virtual address other than

Re: [Mesa-dev] [Mesa-stable] [PATCH] util/build-id: Fix address comparison for binaries with LOAD vaddr > 0

2018-01-25 Thread Stephan Gerhold
On Thu, Jan 25, 2018 at 11:22:10AM +, Emil Velikov wrote: > On 24 January 2018 at 14:13, Stephan Gerhold wrote: > > build_id_find_nhdr_for_addr() fails to find the build-id if the first LOAD > > segment has a virtual address other than 0x0. > > > > For most shared libraries, the first LOAD seg

Re: [Mesa-dev] [Mesa-stable] [PATCH] util/build-id: Fix address comparison for binaries with LOAD vaddr > 0

2018-01-25 Thread Emil Velikov
On 24 January 2018 at 14:13, Stephan Gerhold wrote: > build_id_find_nhdr_for_addr() fails to find the build-id if the first LOAD > segment has a virtual address other than 0x0. > > For most shared libraries, the first LOAD segment has vaddr=0x0: > > Type Offset VirtAddr PhysAddr