Re: [PATCH v3] kallsyms: add support for relative offsets in kallsyms address table
From: Andrew Morton
Date: Fri Jan 22 2016 - 18:44:10 EST
On Fri, 22 Jan 2016 15:34:28 -0800 Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> > Support for the above is enabled by default for all architectures except
> > IA-64, whose symbols are too far apart to capture in this manner.
>
> scripts/kallsyms.c: In function 'record_relative_base':
> scripts/kallsyms.c:744: error: 'ULLONG_MAX' undeclared (first use in this function)
> scripts/kallsyms.c:744: error: (Each undeclared identifier is reported only once
> scripts/kallsyms.c:744: error: for each function it appears in.)
>
> That's with (ancient) glibc-headers-2.5-3. It appears that limits.h's
> ULLONG_MAX requires "#ifdef __USE_ISOC99". I'm not sure what's the
> correct way of turning this on.
Actually, how about we replace it with -1ULL and get on with life.