On Mon, Nov 27, 2000 at 06:21:13PM +0100, Andrea Arcangeli wrote:
> On Mon, Nov 27, 2000 at 12:39:55AM -0800, David S. Miller wrote:
> > Also I believe linkers are allowed to arbitrarily reorder members in
> > the data and bss sections. I could be wrong on this one though.
>
> I'm not sure either, but we certainly rely on that behaviour somewhere.
> Just to make an example fs/dquot.c:
>
> int nr_dquots, nr_free_dquots;
>
> kernel/sysctl.c:
>
> {FS_NRDQUOT, "dquot-nr", &nr_dquots, 2*sizeof(int),
>
> The above is ok also on mips in practice though.
That needs to be fixed ASAP to use an array (not a structure). It is simply
wrong to depend on two variables winding up in at adjacent offsets.
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: [EMAIL PROTECTED] phone: +1 978-486-9304
Non-work: [EMAIL PROTECTED] fax: +1 978-692-4482
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/
- Re: Universal debug macros. Andrew E. Mileski
- Re: Universal debug macros. Richard B. Johnson
- Re: Universal debug macros. Andrew E. Mileski
- Re: Universal debug macros. Richard B. Johnson
- Re: Universal debug macros. Andrew E. Mileski
- Re: [PATCH] removal of "static foo = 0" Adam J. Richter
- Re: [PATCH] removal of "static foo = 0" Werner Almesberger
- Re: [PATCH] removal of "static foo = 0&qu... David S. Miller
- Re: [PATCH] removal of "static foo = ... Werner Almesberger
- Re: [PATCH] removal of "static foo = ... Andrea Arcangeli
- Re: [PATCH] removal of "static fo... Michael Meissner
- Re: [PATCH] removal of "stat... Andrea Arcangeli
- Re: [PATCH] removal of "... Richard B. Johnson
- Re: [PATCH] removal of "... Andrea Arcangeli
- Re: [PATCH] removal of "... Horst von Brand
- Re: [PATCH] removal of "... Andrea Arcangeli
- Re: [PATCH] removal of "... Alexander Viro
- Re: [PATCH] removal of "... Michael Meissner
- Re: [PATCH] removal of "... Andreas Schwab
- Re: [PATCH] removal of "... Andrea Arcangeli
- Re: [PATCH] removal of "... Andreas Schwab

