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

2018-01-24 Thread Stephan Gerhold
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 FileSiz MemSiz Flg Align LOAD 0x00 0x0

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 share