[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Suessmilch Bernd <Bernd.Suessmilch@SWAROVSKI.COM>] (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Suessmilch Bernd <Bernd.Suessmilch@SWAROVSKI.COM>] (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Mon, 28 May 2001 20:43:10 +0200 (CEST)
>From owner-rtl Mon May 28 09:23:08 2001
Received: from lan212095014004.ibk.telering.at (lan212095014004.ibk.telering.at [212.95.14.4])
by hq.fsmlabs.com (8.11.2/8.11.2) with SMTP id f4SFN7s19997
for <rtl@fsmlabs.com>; Mon, 28 May 2001 09:23:07 -0600
Received: from no.name.available by lan212095014004.ibk.telering.at
via smtpd (for hq.fsmlabs.com [209.155.42.197]) with SMTP; 28 May 2001 15:17:59 UT
Received: from 193.188.217.34 by dsw80.wattens.swarovski.com (InterScan E-Mail VirusWall NT); Mon, 28 May 2001 17:17:57 +0200 (W. Europe Daylight Time)
Received: from dsw29.wattens.swarovski.com by [193.164.238.249]
via smtpd (for [193.164.238.240]) with SMTP; 28 May 2001 15:17:58 UT
Received: by dsw29.wattens.swarovski.com with Internet Mail Service (5.5.2650.21)
id <28N2ZD52>; Mon, 28 May 2001 16:53:36 +0200
Message-ID: <853DD5D67AF0D411A3300000D1DD5C3B260E69@dsw89.wattens.swarovski.com>
From: Suessmilch Bernd <Bernd.Suessmilch@SWAROVSKI.COM>
To: "'rtl@fsmlabs.com'" <rtl@fsmlabs.com>
Subject: RE: [rtl] uresolved symbol __udivdi3 and __umoddi3
Date: Mon, 28 May 2001 16:53:35 +0200
X-Mailer: Internet Mail Service (5.5.2650.21)
Hello Havard,
it is me again. I think, my previous answer to your question was
precipitant.
Compiling with "-O2" may not solve your problem, but here is
a solution that works:
Use the compiler flags "-static -r -nostartfile -nostdlib -lgcc".
The explanation:
1. __divdi3 and __udivdi3 is used to compute "/" with operands
of type "long long" or "unsigned long long", respectively.
The are defined in libgcc.a. Therefore, you have to use "-lgcc"
2. When linking a program against libgcc, gcc automatically adds
a function for program startup. A kernel module must not linked
with this startup function. Therefore you need the flag "-nostartfile".
3. You cannot use libc in kernel space. Therefore you need the flag
"-nostdlib".
4. Kernel modules have to be relocatable. Therefore you need the "-r" flag.
Sorry for my previous misleading posting.
Regards,
Bernd