Re: 64 bit arithmetic in the kernel

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Thu, 15 Jul 1999 00:16:03 +0200


Michael Richardson wrote:
> This worked wonderfully, and I thank the several people who suggested that
> I could just use "ld -r" to do this. Why isn't libgcc1.a linked into the
> kernel somewhere when compiling with GCC already? Or are the symbols not
> exported perhaps?

Because libgcc1.a is not installed with GCC.
libgcc.a is, but that includes libc-level calls.

A solution, though there doesn't seem to be a great need for one, is
this in linux/lib:

libgcc=`gcc -print-file-name=libgcc.a`
files=`ar t "$libgcc" | egrep '^_.*[qhsdt]i[234]?\.o$'`
ar x "$libgcc" $files
ar rcs libgcc.a $files

Link with the resulting local libgcc.a

-- Jamie

-
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/