Re: 64 bit arithmetic in the kernel

Michael Richardson (mcr@sandelman.ottawa.on.ca)
Thu, 15 Jul 1999 10:53:34 -0400


>>>>> "Jamie" == Jamie Lokier <lkd@tantalophile.demon.co.uk> writes:
Jamie> 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?

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

NetBSD puts all of this into /sys/lib/libkern, but it isn't of libgcc1.a
origin.
Maybe the GCC/EGCS folk could be convinced to either install libgcc1.a
somewhere useful, split the libc-level stuff out of libgcc.a, or something?

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

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

Jamie> Link with the resulting local libgcc.a

] Train travel features AC outlets with no take-off restrictions| firewalls [
] Michael Richardson, Sandelman Software Works, Ottawa, ON |net architect[
] mcr@sandelman.ottawa.on.ca http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy"); [

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