[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Havard Gullbekk <hgull@mail.ukans.edu>] (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Havard Gullbekk <hgull@mail.ukans.edu>] (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Fri, 25 May 2001 18:06:51 +0200 (CEST)
>From owner-rtl Fri May 25 10:59:16 2001
Received: from lark.cc.ukans.edu (root@lark.cc.ukans.edu [129.237.34.2])
by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f4PGxFP25415
for <rtl@rtlinux.org>; Fri, 25 May 2001 10:59:15 -0600
Received: from webmail.ku.edu by lark.cc.ukans.edu (8.8.8/1.1.8.2/12Jan95-0207PM)
id LAA0000000443; Fri, 25 May 2001 11:54:15 -0500 (CDT)
X-WebMail-UserID: hgull@mail.ukans.edu
Date: Fri, 25 May 2001 11:56:03 -0500
Sender: Havard Gullbekk <hgull@mail.ukans.edu>
From: Havard Gullbekk <hgull@mail.ukans.edu>
To: rtl@rtlinux.org
X-EXP32-SerialNo: 00002424
Subject: RE: [rtl] unresolved symbol __udivdi3 and __umoddi3
Message-ID: <3B1481E8@webmail.ku.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Mailer: WebMail (Hydra) SMTP v3.61.07
Hi Chris,
I tried linking in the libgcc.a like this:
ahrs.o: ahrs.c
$(CC) ${CFLAGS} -c -o ahrs_tmp.o ahrs.c
$(LD) -r -static ahrs_tmp.o -o ahrs.o -L/usr/lib -lm -lc
-L/usr/lib/gcc-lib/i486-suse-linux/2.95.2 -lgcc
rm -f ahrs_tmp.o
Now my system freezes when I insert ahrs.o What did I do wrong?
(I don't get any error messages)
Havard
>===== Original Message From "Christopher D. Carothers" <chrisc@cs.rpi.edu>
=====
> Hi Havard --
>
> You need to link in the libgcc.a which is located at:
>
>/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/libgcc.a
>
> It could be a slightly different directory depending on your linux
>install. These are some internal math rountines used by gcc.
>
> Now, I see you are including libm.a -- you will probably see
>multiple defines, since libm.a needs libc.a -- functions like perror. And
>you cannot bring in libc.a into the kernel for a variety of reasons. If
>you need math functionality, others may have solution to that ...
>
> Hope that helps,
> Chris
>