* GCC and Modules
@ 2001-07-24 11:14 Andre.Messerschmidt
2001-07-24 15:40 ` H . J . Lu
0 siblings, 1 reply; 7+ messages in thread
From: Andre.Messerschmidt @ 2001-07-24 11:14 UTC (permalink / raw)
To: linux-mips
Hi.
As I understand the current stable release of binutils and gcc is not able
to compile functional modules.
Sadly I am not able to use the CVS (Thanks to our super-secure admins, who
lock every port possible).
So here is my question: Does anybody provide snapshots of the CVS (or maybe
binaries for x86 that support modules) for download?
Thanks.
Best regards
--
Andre Messerschmidt
Application Engineer
Infineon Technologies AG
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GCC and Modules
2001-07-24 11:14 GCC and Modules Andre.Messerschmidt
@ 2001-07-24 15:40 ` H . J . Lu
2001-07-24 16:20 ` Ralf Baechle
0 siblings, 1 reply; 7+ messages in thread
From: H . J . Lu @ 2001-07-24 15:40 UTC (permalink / raw)
To: Andre.Messerschmidt; +Cc: linux-mips
On Tue, Jul 24, 2001 at 01:14:42PM +0200, Andre.Messerschmidt@infineon.com wrote:
> Hi.
>
> As I understand the current stable release of binutils and gcc is not able
> to compile functional modules.
What are you talking about? My mips toolchain is as stable/good as the
x86 version for RedHat 7.1.
H.J.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GCC and Modules
2001-07-24 15:40 ` H . J . Lu
@ 2001-07-24 16:20 ` Ralf Baechle
2001-07-24 16:30 ` H . J . Lu
0 siblings, 1 reply; 7+ messages in thread
From: Ralf Baechle @ 2001-07-24 16:20 UTC (permalink / raw)
To: H . J . Lu; +Cc: Andre.Messerschmidt, linux-mips
On Tue, Jul 24, 2001 at 08:40:05AM -0700, H . J . Lu wrote:
> > As I understand the current stable release of binutils and gcc is not able
> > to compile functional modules.
>
> What are you talking about? My mips toolchain is as stable/good as the
> x86 version for RedHat 7.1.
He's refering to the last official release of binutils which indeed wasn't
usable for modutils.
Ralf
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GCC and Modules
2001-07-24 16:20 ` Ralf Baechle
@ 2001-07-24 16:30 ` H . J . Lu
0 siblings, 0 replies; 7+ messages in thread
From: H . J . Lu @ 2001-07-24 16:30 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Andre.Messerschmidt, linux-mips
On Tue, Jul 24, 2001 at 06:20:57PM +0200, Ralf Baechle wrote:
> On Tue, Jul 24, 2001 at 08:40:05AM -0700, H . J . Lu wrote:
>
> > > As I understand the current stable release of binutils and gcc is not able
> > > to compile functional modules.
> >
> > What are you talking about? My mips toolchain is as stable/good as the
> > x86 version for RedHat 7.1.
>
> He's refering to the last official release of binutils which indeed wasn't
> usable for modutils.
What official release of binutils? Are we talking about the FSF
official release? Since when did Linux use those? They won't even
work right on Linux/x86. You should either use the Linux binutils
or try your luck with CVS.
H.J.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GCC and Modules
[not found] ` <995995907.1331.5.camel@localhost.localdomain>
@ 2001-07-24 20:25 ` H . J . Lu
2001-07-24 21:09 ` Marc Karasek
0 siblings, 1 reply; 7+ messages in thread
From: H . J . Lu @ 2001-07-24 20:25 UTC (permalink / raw)
To: Marc Karasek; +Cc: linux-mips
On Tue, Jul 24, 2001 at 01:31:41PM -0400, Marc Karasek wrote:
> The way to see this bug is just try to compile the MIPS kernel (either
> 2.4.1 or 2.4.3) as follows:
>
> 1) make distclean
> 2) copy linux/arch/mips/defconfig-malta linux/.config
> 3) make oldconfig
> 4) make menuconfig
> 5) change the endianess from little to big
> 6) make dep
> 7) make zImage
>
That is a kernel bug. The code only works on littl endian by accident
Here is a patch.
H.J.
--- arch/mips/mips-boards/generic/time.c.int64 Tue Jul 24 13:21:21 2001
+++ arch/mips/mips-boards/generic/time.c Tue Jul 24 13:22:02 2001
@@ -275,7 +275,7 @@ void __init time_init(void)
/* This is for machines which generate the exact clock. */
#define USECS_PER_JIFFY (1000000/HZ)
-#define USECS_PER_JIFFY_FRAC (0x100000000*1000000/HZ&0xffffffff)
+#define USECS_PER_JIFFY_FRAC ((long) (0x100000000*1000000/HZ&0xffffffff))
/* Cycle counter value at the previous timer interrupt.. */
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GCC and Modules
2001-07-24 20:25 ` H . J . Lu
@ 2001-07-24 21:09 ` Marc Karasek
0 siblings, 0 replies; 7+ messages in thread
From: Marc Karasek @ 2001-07-24 21:09 UTC (permalink / raw)
To: H . J . Lu; +Cc: linux-mips
I will patch and give this a try... prob will not be until Thursday or
Friday..
On 24 Jul 2001 13:25:34 -0700, H . J . Lu wrote:
> On Tue, Jul 24, 2001 at 01:31:41PM -0400, Marc Karasek wrote:
> > The way to see this bug is just try to compile the MIPS kernel (either
> > 2.4.1 or 2.4.3) as follows:
> >
> > 1) make distclean
> > 2) copy linux/arch/mips/defconfig-malta linux/.config
> > 3) make oldconfig
> > 4) make menuconfig
> > 5) change the endianess from little to big
> > 6) make dep
> > 7) make zImage
> >
>
> That is a kernel bug. The code only works on littl endian by accident
> Here is a patch.
>
>
> H.J.
> --- arch/mips/mips-boards/generic/time.c.int64 Tue Jul 24 13:21:21 2001
> +++ arch/mips/mips-boards/generic/time.c Tue Jul 24 13:22:02 2001
> @@ -275,7 +275,7 @@ void __init time_init(void)
>
> /* This is for machines which generate the exact clock. */
> #define USECS_PER_JIFFY (1000000/HZ)
> -#define USECS_PER_JIFFY_FRAC (0x100000000*1000000/HZ&0xffffffff)
> +#define USECS_PER_JIFFY_FRAC ((long) (0x100000000*1000000/HZ&0xffffffff))
>
> /* Cycle counter value at the previous timer interrupt.. */
>
--
/*************************
Marc Karasek
Sr. Firmware Engineer
iVivity Inc.
marc_karasek@ivivity.com
(770) 986-8925
(770) 986-8926 Fax
*************************/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GCC and Modules
2001-07-25 9:12 AW: " Andre.Messerschmidt
@ 2001-07-25 11:24 ` Ralf Baechle
0 siblings, 0 replies; 7+ messages in thread
From: Ralf Baechle @ 2001-07-25 11:24 UTC (permalink / raw)
To: Andre.Messerschmidt; +Cc: linux-mips
On Wed, Jul 25, 2001 at 11:12:47AM +0200, Andre.Messerschmidt@infineon.com wrote:
> I compiled the tools by myself but the problems remain.
> My module should only print a message using printk, but I can't get it to
> run.
>
> Here are my results:
> > insmod module.o
> insmod: unresolved symbol _gp_disp
>
> Module compiled with -mno-abicalls and -no-half-pic (as someone in the
> archives mentioned)
-fno-pic you mean. Half PIC is meaningless under Linux.
Ralf
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-07-25 11:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-24 11:14 GCC and Modules Andre.Messerschmidt
2001-07-24 15:40 ` H . J . Lu
2001-07-24 16:20 ` Ralf Baechle
2001-07-24 16:30 ` H . J . Lu
[not found] <25369470B6F0D41194820002B328BDD27D2E@ATLOPS>
[not found] ` <20010724085544.A20610@lucon.org>
[not found] ` <995995907.1331.5.camel@localhost.localdomain>
2001-07-24 20:25 ` H . J . Lu
2001-07-24 21:09 ` Marc Karasek
-- strict thread matches above, loose matches on Subject: below --
2001-07-25 9:12 AW: " Andre.Messerschmidt
2001-07-25 11:24 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox