Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932616AbcJQCap (ORCPT ); Sun, 16 Oct 2016 22:30:45 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:56499 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932205AbcJQCah (ORCPT ); Sun, 16 Oct 2016 22:30:37 -0400 Subject: Re: [PATCH 7/8] tools lib bpf: fix maps resolution To: Eric Leblond , References: <20161016211834.11732-1-eric@regit.org> <20161016211834.11732-8-eric@regit.org> CC: , From: "Wangnan (F)" Message-ID: <5804361F.9050108@huawei.com> Date: Mon, 17 Oct 2016 10:23:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20161016211834.11732-8-eric@regit.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.111.66.109] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 419 Lines: 14 On 2016/10/17 5:18, Eric Leblond wrote: > It is not correct to assimilate the elf data of the maps section > to an array of map definition. In fact the sizes differ. The > offset provided in the symbol section has to be used instead. > > This patch fixes a bug causing a elf with two maps not to load > correctly. Could you please give an example so we can understand why section 'maps' is not an array? Thank you.