Re: [PATCH 7/8] tools lib bpf: fix maps resolution

From: Wangnan (F)
Date: Sun Oct 16 2016 - 22:32:23 EST




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.