Re: [patch] 2.3.99-pre3-3: dev_alloc_name

From: Andrew Morton (andrewm@uow.edu.au)
Date: Tue Mar 21 2000 - 09:36:32 EST


Tim Waugh wrote:
>
> Compiling Space.c with -fwritable-strings seems to have the right affect,

It grows by 55%:

[morton@victoria net]$ size Space.o
   text data bss dec hex filename
    702 2936 0 3638 e36 Space.o

[morton@victoria net]$ size Space.o
   text data bss dec hex filename
    297 5340 0 5637 1605 Space.o

This is why:

[morton@victoria net]$ strings Space.o
eip: %p
/usr/src/linux/include/asm/spinlock.h
kernel BUG at %s:%d!
/usr/src/linux/include/asm/spinlock.h
kernel BUG at %s:%d!
/usr/src/linux/include/asm/spinlock.h
kernel BUG at %s:%d!
/usr/src/linux/include/asm/spinlock.h
kernel BUG at %s:%d!
/usr/src/linux/include/asm/spinlock.h
kernel BUG at %s:%d!
wq bug, forcing oops.
wq bug, forcing oops.
wq bug, forcing oops.
bad magic %lx (should be %lx, creator %lx),
wq bug, forcing oops.

strdup() sounds good. Do the world a favour and put it in $TOPDIR/lib
this time!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:33 EST