lkml.org 
[lkml]   [2015]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v4 09/29] bpf tools: Collect version and license from ELF sections
On Thu, May 28, 2015 at 11:34:37AM +0800, Wangnan (F) wrote:
> >...
> >>+static int
> >>+bpf_object__init_kversion(struct bpf_object *obj,
> >>+ void *data, size_t size)
> >>+{
> >>+ u32 kver;
> >>+ if (size < sizeof(kver)) {
> >shouldn't it be '!=' ?
>
> Is it possible that LLVM pads 'version' section so the size of it becomes
> longer than sizeof(u32)?

llvm will not be padding a section unless user asks for it.
Try objdump on *_kern.o



\
 
 \ /
  Last update: 2015-05-28 08:21    [W:0.072 / U:1.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site