Re: ADFS -> undefined reference to __cmpdi2 (2.3.51)

From: Russell King (rmk@arm.linux.org.uk)
Date: Sat Mar 11 2000 - 10:04:51 EST


Alexander Viro writes:
> On Sat, 11 Mar 2000, Russell King wrote:
> > Arjan van de Ven writes:
> > > The ADFS filesystem doesn't compile for me, it leaves undefined references
> > > to __cmpdi2.
> >
> > Is your GCC environment missing something?
>
> Yes. switch(long_long_var) is _not_ a primitive. And libgcc.a is out of
> question in the kernel. Assuming that you don't have 64-bit offsets in
> directories - switch((unsigned long)(long_long_var)) may be a good idea.

Would switch ((int)(long_long_var)) be safer for other architectures?
   _____
  |_____| ------------------------------------------------- ---+---+-
  | | Russell King rmk@arm.linux.org.uk --- ---
  | | | | http://www.arm.linux.org.uk/~rmk/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.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:19 EST