[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#394381: gdb: FTBFS, indirectly uses PAGE_SIZE



On Fri, Oct 20, 2006 at 03:03:53PM -0600, Troy Heber wrote:
> gdb contains bfd, and bfd uses NBPG defined in <sys/user.h>. However,
> that is just a redefinition of PAGE_SIZE which is no longer defined to
> user space becasue of #ifdef __KERNEL__, See #393023. Using PAGE_SIZE
> directly from a user space application is broken because systems now
> can have variable PAGE_SIZE. The problem is that the clobbered
> PAGE_SIZE but didn't audit for its dependencies.

I might be wrong, but I think that this is a bug in glibc; I understand
why it can't provide PAGE_SIZE, but it ought to provide NBPG if it's
going to bother to provide "struct user" (a purely legacy format) at
all.  It seems like a hideous hack to have to try to compile NBPG in
autoconf.

-- 
Daniel Jacobowitz
CodeSourcery



Reply to: