Re: [PATCH] removal of "static foo = 0" from drivers/ide (test11)

From: Russell King (rmk@arm.linux.org.uk)
Date: Wed Nov 29 2000 - 18:54:29 EST


Darryl Miles writes:
> Hmm, what about common symbol generation? i.e. the linker looses the
> ability to throw out "multiply defined symbol" errors where you fail
> to initialise it to a value.

We need to build with -fno-common to be 100% safe in this case. I'll
run several compilations with this flag tomorrow.

> >We already argue about the extra couple of bytes that xx change to the
> >kernel/a module would cost. With these change, we save kilo-bytes in
> >disk space (which is important on some systems).
>
> PDAs!!! :) Excellent work Russell.

Note that this only affects the storage; the run-time size is exactly
the same in both cases. I hope my comment above was clear about that.
   _____
  |_____| ------------------------------------------------- ---+---+-
  | | Russell King rmk@arm.linux.org.uk --- ---
  | | | | http://www.arm.linux.org.uk/personal/aboutme.html / / |
  | +-+-+ --- -+-
  / | THE developer of ARM Linux |+| /|\
 / | | | --- |
    +-+-+ ------------------------------------------------- /\\\ |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



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