[lkml]   [2017]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3 1/1] x86, relocs: add printf attribute to die()

* Nicolas Iooss <> wrote:

> With %Ld, my compiler (gcc 6.3.1 on x86_64) complains:
> arch/x86/tools/relocs.c:400:7: error: format ‘%Ld’ expects argument of
> type ‘long long int’, but argument 2 has type ‘Elf64_Off {aka long
> unsigned int}’ [-Werror=format=]

How did it pick up that type as an 'unsigned long'? We have:

include/uapi/linux/elf.h:typedef __u64 Elf64_Off;

Even user-space has it as a pure 64-bit type:

/usr/include/elf.h:typedef uint64_t Elf64_Off;



 \ /
  Last update: 2017-02-02 08:16    [W:0.052 / U:3.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site