lkml.org 
[lkml]   [1999]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 64 bit arithmetic in the kernel
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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.032 / U:0.796 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site